lundi 12 février 2018

Pass variable into Laravel helper

I have routes for /admin/login and also for /user/login

I'm looking for both of the views to share the same layout file and so looking to pass the first segment (admin or user) into the route helper.

Is that possible?

So effectively, I'd be looking to do something like:

where $thisIsDynamic would either be admin or user depending on the URL.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire