mercredi 24 août 2016

Laravel find model method returns wrong result

this code

FeesApplies::find(2)->toSql();

return this query

select * from `fees_applies`

Why does it ignore id?

Primary key in table is ok. When I write

FeesApplies::where('id',2); 

it works ok



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire