mardi 29 novembre 2016

Laravel 5 helper to convert class name to dot case?

Is there a helper to convert this:

\App\Models\MyModel

to this:

app.models.my_model

I have written my own helper for this, but it seems like a very common thing for the Laravel framework, so I thought I may be missing the built-in version.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire