How to user route method in javascript file in laravel

Опубликовано: 15 Октябрь 2024
на канале: Laravel Package Tutorial
5,327
62

Package: https://github.com/tighten/ziggy#the-...

Laravel is the ability to have named routes. You can define routes without having to worry about getting the URI perfect from the starting.

we can access the route method within PHP file but not in the js file. one great package provides the ability to access your named route in js and javascript files easily.

So, let see the demo in this tutorial.

Like Facebook Page:   / laravelpackagetutorial  
Join Facebook Group:   / 576525202944819  

Please Like and Subscribe. This will really boost my confidence and encourage me to make more and more videos.

Thanks
Shailesh Ladumor