updateOrCreate where date is greater than today

By | October 30, 2018
Questions:

Is there a way to updateorcreate records in a table where the created_at date field is greater than today(midnight)?

I have the following sample:

Model::updateOrCreate(
          [
            'match_id' => $match->id,
            // 'created_at' => some query here to match a record created today
          ]
        );
Answers:

Leave a Reply

Your email address will not be published. Required fields are marked *