protected function handleRequest(Request $request)
    {
        if ($this->isLaravel()) {
            return $this->getKernel()->handle($request);
        }

        return $this->getApplication()->dispatch($request);
    }
protected function handleRequest(Request $request)
    {
        if ($this->isLaravel()) {
            return $this->getKernel()->handle($request);
        }

        return $this->getApplication()->dispatch($request);
    }
protected function handleRequest ( Request $ request ) { if ( $ this -> isLaravel ( ) ) { return $ this -> getKernel ( ) -> handle ( $ request ) ; } return $ this -> getApplication ( ) -> dispatch ( $ request ) ; }
Handle request through Laravel or Lumen.

@param \Illuminate\Http\Request $request

@return \Illuminate\Http\Response
Handle request through Laravel or Lumen .