dimanche 8 juillet 2018

Laravel 5.6 - Get route name in javsascript

I have a Laravel 5.6 project with a JS file in the public directory.

I am looking for a way to get the route name within the javascript file. I need to set a variable in the javascript depending on the route.

Is there a way I can do this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire