Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Method controller does not exist exception in Laravel 5.3 #25

Open
zahardev opened this issue Oct 1, 2016 · 3 comments
Open

Bug: Method controller does not exist exception in Laravel 5.3 #25

zahardev opened this issue Oct 1, 2016 · 3 comments

Comments

@zahardev
Copy link

zahardev commented Oct 1, 2016

In Laravel 5.3 script throws exception: BadMethodCallException in Macroable.php line 74: Method controller does not exist.
The problem is connected with calling Route::controller() method in routes.php file.

@AlirezaAlgo
Copy link
Contributor

@zahardoc please send a pull request

@jacksinn
Copy link

jacksinn commented Nov 2, 2016

Changing
Route::controller('/blog', '\Serverfireteam\blog\BlogController');
To
Route::resource('/blog', '\Serverfireteam\blog\BlogController');

in routes.php for using blog in Laravel 5.3 fixed the proble

m for me (as far as installation goes) but then, of course, the methods aren't resourceful methods. I've created resourceful methods that reference the other methods and I'm using a different front end anyway for testing.

@AlirezaAlgo
Copy link
Contributor

Maybe a pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants