protected function shouldExecute($request, bool $before = true): bool
    {
        return !in_array($request->path(), $before ? $this->beforeExcept : $this->afterExcept);
    }
protected function shouldExecute($request, bool $before = true): bool
    {
        return !in_array($request->path(), $before ? $this->beforeExcept : $this->afterExcept);
    }
protected function shouldExecute ( $ request , bool $ before = true ) : bool { return ! in_array ( $ request -> path ( ) , $ before ? $ this -> beforeExcept : $ this -> afterExcept ) ; }
Determine if request has a URI that should fire the after middleware

@param \Illuminate\Http\Request $request
@param bool                     $before
@return bool
Determine if request has a URI that should fire the after middleware