1. Pass the Route URL as a JavaScript Variable in the Blade File: <script> var routeUrl = "{{ route('columns.all') }}"; </script> 2. Add this routeUrl variable in your jquery ajax function: url: routeUrl
It should be work now.