Hesto / multi-auth

Laravel 5.3, 5.4, 5.5, 5.6, 5.7 multi auth package
MIT License
448 stars 146 forks source link

BadMethodCallException #60

Closed chamamme closed 7 years ago

chamamme commented 7 years ago

This is the error i get when trying to migrate Method mapAdminRoutes does not exist. I checked the RouteServiceProvider.php and the happens that there is no method defined for mapAdminRoutes for i defined one myself but i don't know if i did the right thing.

private function mapBackadminRoutes() { Route::group([ 'middleware' => 'backadmin', 'namespace' => $this->namespace, 'prefix' => 'backadmin', ], function ($router) { require base_path('routes/backadmin.php'); }); }

Help!

Hesto commented 7 years ago

Did you use package with fresh laravel installation?

chamamme commented 7 years ago

No it's an already existing project.

Hesto commented 7 years ago

There was probably another formating or you changed something in files that multi-auth uses. Install it with fresh laravel and find the diff.

Nemermel commented 7 years ago

Greetings. Trying to login as registered user, I have such message: http://imgur.com/a/oMNLO Just initialized project, and made multi-auth users.

Update Started new project. Everything is fine