Skip to content
Advertisement

Defined route throwing controller method not found laravel 4

I have a route defined in routes.php file but when i make an ajax request from my angular app, i get this error

JavaScript

this is my routes file

JavaScript

chrome web inspector Same post request in a rest client app on chrome Accessing the same url (http://localhost/site/public/api/auth/signup) from a rest client app on chrome does not give any errors, what could be wrong?

this is the angular code from my controller

JavaScript

more angular code

JavaScript

Advertisement

Answer

Fixed the problem, turns my controller was calling an undefined method in the controller class. Renamed the method correctly and the request now works, thanks guys for the input.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement