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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire