vendredi 29 avril 2016

new and static used at once in laravel 5

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.

PHP version is 5.6.3



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1Syo5tV
via IFTTT

Aucun commentaire:

Enregistrer un commentaire