public function resolve()
    {
        $request = $this->app->make(Request::class);

        if ($this->app->runningInConsole()) {
            $command = $request->server('argv', []);
            if (!is_array($command)) {
                $command = explode(' ', $command);
            }

            return new ConsoleRequest($command);
        }

        return new LaravelRequest($request);
    }
public function resolve()
    {
        $request = $this->app->make(Request::class);

        if ($this->app->runningInConsole()) {
            $command = $request->server('argv', []);
            if (!is_array($command)) {
                $command = explode(' ', $command);
            }

            return new ConsoleRequest($command);
        }

        return new LaravelRequest($request);
    }
public function resolve ( ) { $ request = $ this -> app -> make ( Request :: class ) ; if ( $ this -> app -> runningInConsole ( ) ) { $ command = $ request -> server ( 'argv' , [ ] ) ; if ( ! is_array ( $ command ) ) { $ command = explode ( ' ' , $ command ) ; } return new ConsoleRequest ( $ command ) ; } return new LaravelRequest ( $ request ) ; }
Resolve the current request.

@return \Bugsnag\Request\RequestInterface
Resolve the current request .