я использовал Laravel 5.5 и моя страница входа в систему http://127.0.0.1:8000/vendor/login есть ошибка
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)); } }
пожалуйста, помогите мне
my VendorLoginController.php
https://github.com/Tohidda/file/blob/master/VendorLoginController.php
и мой auth.php
https://github.com/Tohidda/file/blob/master/auth.php
и мой web.php
https://github.com/Tohidda/file/blob/master/web.php