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