lundi 2 avril 2018

Laravel eloquent firstOrCreate interval of dates

Is there a way to use firstOrCreate with an interval of dates. I know you can use:

Model::firstOrCreate(['field' => $value], ['created_at' => $dateValue]);

But is it possible to check if the record exist between the last few days?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2InjjxQ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire