public function canSkip(Request $request)
    {
        $routeName = $request->route()->getName();

        return in_array($routeName, $this->preventRouteNames, true);
    }
public function canSkip(Request $request)
    {
        $routeName = $request->route()->getName();

        return in_array($routeName, $this->preventRouteNames, true);
    }
public function canSkip ( Request $ request ) { $ routeName = $ request -> route ( ) -> getName ( ) ; return in_array ( $ routeName , $ this -> preventRouteNames , true ) ; }
Check if the given request can be skipped.

@param Request $request
@return bool
Check if the given request can be skipped .