jeudi 1 février 2018

Laravel 5 Eloquent where clause

how can I operate on the where clause? For example I have this query

 Product::where('purchase_data', '=', $data_inp)->get();

The problem is that I need to operate a formatting on the content of column purchase_data before is compared. What can i do?



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

Aucun commentaire:

Enregistrer un commentaire