protected function shouldPassThrough($request)
{
$excepts = [Admin::url('auth/login'), Admin::url('auth/logout')];
foreach ($excepts as $except) {
if ($except !== '/') {
$except = trim($except, '/');
}
if ($request->is($except)) {
return true;
}
}
return false;
}