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?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire