With
, where
, hasMany
etc. methods of Eloquent class are not static.
However we call these functions like that:
// Post is a child of Model class.
Post::where(...); // we don't use New keyword.
So, does Laravel Framework initiate all Model instances before we call their methods?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2quB5qm
via IFTTT
Aucun commentaire:
Enregistrer un commentaire