Open rifaldhiaw opened 7 years ago
I just had the same problem, here's the solution: go to RouteServiceProvider and add the function
protected function map {Guard} Routes () { Route::group([ 'middleware' => ['web', '{guard}', 'auth:{guard}'], 'prefix' => '{guard}', 'as' => '{guard}.', 'namespace' => $this->namespace, ], function ($router) { require base_path('routes/{guard}.php'); }); }
replace {Guard} with your name
@iccunha thx a lot,worked for me. btw whats the problem ? i used multi auth about 2weeks ago without any problem,but now in my new project encountered this
@iccunha this does not work in Laravel 5.6 ... Any suggestions?
Hey Hesto. I just try out your multi-auth on latest laravel 5.5 and just after I execute this:
php artisan multi-auth:install {singular_lowercase_name_of_guard} -f
then, i want to do migration, that error showed up. After I clean all of changed file, it back to normal. I can't figure out which part is wrong. Can you help me?