serverfireteam / blog

A nice blog system with laravel 5 and laravelpanel
MIT License
52 stars 32 forks source link

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

Open zahardev opened 8 years ago

zahardev commented 8 years ago

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 commented 8 years ago

@zahardoc please send a pull request

jacksinn commented 7 years ago

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 commented 7 years ago

Maybe a pull request