I'm working on an application, and I just started pushing it to my staging server to test it out in in a live environment and ran into an odd problem.
So I have a route set up like this:
// AJAX routes
Route::controller('io', 'IoController');
And in the IoController I have methods set up:
public function getSomeData() {}
public function postSomeData() {}
When I run php artisan routes
on my dev environment (localhost):
GET /io/some-data
POST /io/some-data
GET /io/{_missing}
But on my staging server I just get:
GET /io/{_missing}
Of course, checking the route app.com/io/some-data
just throws an 'Controller method not found'
exeption.
Anyone who have ran into similar problems and resolved them? I really have no idea why this is happening, and where to start looking.