src/Commands/Stubs/Backend/Helpers/LoggerHelper.php
/**
     * log error data
     * 
     * @param Throwable $throwable throwable data
     * @param array $user current user
     * @param array $payload payload data
     * 
     */
log error data

@param Throwable $throwable throwable data
@param array $user current user
@param array $payload payload data
log error data @param Throwable $throwable throwable data @param array $user current user @param array $payload payload data
public function logError($throwable, $user = null, $payload = null)
    {
        $location = Route::currentRouteAction();
        $data = [
            'context' => $throwable->getMessage(),
            'location' => $location,
            'line' => $throwable->getLine(),
            'user' => $user,
            'payload' => $payload,
        ];
        $this->privateLogger($data, $throwable->getCode());
    }
public function logError ( $ throwable , $ user = null , $ payload = null ) { $ location = Route :: currentRouteAction ( ) ; $ data = [ 'context' => $ throwable -> getMessage ( ) , 'location' => $ location , 'line' => $ throwable -> getLine ( ) , 'user' => $ user , 'payload' => $ payload , ] ; $ this -> privateLogger ( $ data , $ throwable -> getCode ( ) ) ; }
log error data
log error data