protected $guards = [];
public function handle($request, Closure $next, ...$guards)
{
$this->guards = $guards;
return parent::handle($request, $next, ...$guards);
}
protected function redirectTo($request)
{
if (in_array("admin", $this->guards)) {
return "admin/login";
}
}