src/Kernel.php
public function handle()
    {
        $response = '';

        try {
            // Set running mode
            $this->app->instance('mode', 'web');

            // App boot
            $this->app->boot();

            // Prepare request
            $request = $this->prepareRequest();

            // Preparar rotas
            $response = $this->runRoute($request);

        } catch (\Exception $e) {
            $this->reportException($e);

            $response = Router::toResponse($request, $this->renderException($request, $e));
        }

        // Call terminate
        $this->terminate($request, $response);

        return $response;
    }
public function handle()
    {
        $response = '';

        try {
            // Set running mode
            $this->app->instance('mode', 'web');

            // App boot
            $this->app->boot();

            // Prepare request
            $request = $this->prepareRequest();

            // Preparar rotas
            $response = $this->runRoute($request);

        } catch (\Exception $e) {
            $this->reportException($e);

            $response = Router::toResponse($request, $this->renderException($request, $e));
        }

        // Call terminate
        $this->terminate($request, $response);

        return $response;
    }
public function handle ( ) { $ response = '' ; try { // Set running mode $ this -> app -> instance ( 'mode' , 'web' ) ; // App boot $ this -> app -> boot ( ) ; // Prepare request $ request = $ this -> prepareRequest ( ) ; // Preparar rotas $ response = $ this -> runRoute ( $ request ) ; } catch ( \ Exception $ e ) { $ this -> reportException ( $ e ) ; $ response = Router :: toResponse ( $ request , $ this -> renderException ( $ request , $ e ) ) ; } // Call terminate $ this -> terminate ( $ request , $ response ) ; return $ response ; }
Handle web.

@return \Illuminate\Http\JsonResponse|JsonResponse|Response
Handle web .