Lsrur\Inspector\Collectors\RequestCollector::__construct PHP Method

__construct() public method

public __construct ( )
    public function __construct()
    {
        if (\App::runningInConsole()) {
            $this->request = [];
        } else {
            $this->request = ['url' => request()->url(), 'method' => request()->method(), 'input' => request()->input(), 'action' => \Route::getCurrentRoute() !== null ? \Route::getCurrentRoute()->getAction() : null, 'headers' => request()->header()];
        }
    }