We were talking about Laravel 5 on its release, we are pleased today to welcome Laravel 5.1
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
Aucun commentaire:
Enregistrer un commentaire