I have a Laravel 5.6 project, everything is fine as I develop it, the question is that in my Ajax methods I have url: / path1 / path2 / rut3, etc and if it works perfect but when I deploy to the server, it gives me the error of that the routes do not exist and I must add them ../ which each change would imply doing everything again.
Thank you in advance !!