InvalidArgumentException
Auth guard [vendor] is not defined.
我的错误
public function handle($request, Closure $next, $guard = null)
{
if (Auth::guard($guard)->check()) {
return redirect('/');
}
return $next($request);
}
我的AuthServiceProvider代码:
class AuthServiceProvider extends ServiceProvider
{
protected $policies = [
product::class =>productPolicy::class,
];
public function boot()
{
$this->registerPolicies();
Passport::routes();
Passport::tokensExpireIn(now()->addDay(2));
}
}
请帮助我
我的VendorLoginController.php
https://github.com/Tohidda/file/blob/master/VendorLoginController.php
和我的auth.php
https://github.com/Tohidda/file/blob/master/auth.php
和我的web.php