/**
* Determine if the request has a URI that should pass through verification.
*
* @param \Illuminate\Http\Request $request
* @return bool
*/
protected function shouldPassThrough($request)
{
$excepts = [Admin::url('auth/login'), Admin::url('ayth/logout')];
foreach ($excepts as $except) {
if ($except !== '/') {
$except = trim($except, '/');
}
if ($request->is($except)) {
return true;
}
}
return false;
}