protected function prepare()
    {
        return [
            'route'             => str_replace(app('url')->to('/'), '', Request::url()),
            'ip_address'        => GeoIPFacade::getClientIP(),
            'user_agent'        => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'No UserAgent',
            'created_at'        => new DateTime(),
            'updated_at'        => new DateTime(),
            'type'              => 'dispatched',
            'user_id'           => auth()->guest() ? null : auth()->user()->id,
            'brand_id'          => brand_id(),
            'additional_params' => $this->additionalParams,
            'related_data'      => $this->relatedData
        ];
    }
protected function prepare()
    {
        return [
            'route'             => str_replace(app('url')->to('/'), '', Request::url()),
            'ip_address'        => GeoIPFacade::getClientIP(),
            'user_agent'        => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'No UserAgent',
            'created_at'        => new DateTime(),
            'updated_at'        => new DateTime(),
            'type'              => 'dispatched',
            'user_id'           => auth()->guest() ? null : auth()->user()->id,
            'brand_id'          => brand_id(),
            'additional_params' => $this->additionalParams,
            'related_data'      => $this->relatedData
        ];
    }
protected function prepare ( ) { return [ 'route' => str_replace ( app ( 'url' ) -> to ( '/' ) , '' , Request :: url ( ) ) , 'ip_address' => GeoIPFacade :: getClientIP ( ) , 'user_agent' => isset ( $ _SERVER [ 'HTTP_USER_AGENT' ] ) ? $ _SERVER [ 'HTTP_USER_AGENT' ] : 'No UserAgent' , 'created_at' => new DateTime ( ) , 'updated_at' => new DateTime ( ) , 'type' => 'dispatched' , 'user_id' => auth ( ) -> guest ( ) ? null : auth ( ) -> user ( ) -> id , 'brand_id' => brand_id ( ) , 'additional_params' => $ this -> additionalParams , 'related_data' => $ this -> relatedData ] ; }
prepare insert log data

@return array
prepare insert log data