Laravel this is not only a practical framework, it is also a programming style
I encounter with one strange line of code in the larvel 5.0
echo (new static)->getMorphClass();
This echo the namespace of the model. Now didn't understand how come new and static are used at once.
new
static
PHP version is 5.6.3
Aucun commentaire:
Enregistrer un commentaire