src/Mpesa/Laravel/Http/Controllers/MpesaWebHookController.php
/**
     * Log the incoming request to a log file.
     *
     * @param array  $data
     * @param string $occassion
     **/
Log the incoming request to a log file.
@param array  $data
@param string $occassion
Log the incoming request to a log file . @param array $data @param string $occassion
protected function logRequest(array $data, $occassion)
    {
        $file = \fopen(storage_path('logs/mpesa.log'), 'a+');
        \fwrite($file, $occassion);
        \fwrite($file, \json_encode($data));
        \fwrite($file, "\r\n");
        \fclose($file);
    }
protected function logRequest ( array $ data , $ occassion ) { $ file = \ fopen ( storage_path ( 'logs/mpesa.log' ) , 'a+' ) ; \ fwrite ( $ file , $ occassion ) ; \ fwrite ( $ file , \ json_encode ( $ data ) ) ; \ fwrite ( $ file , " \r \n " ) ; \ fclose ( $ file ) ; }
Log the incoming request to a log file.
Log the incoming request to a log file .
//log incoming request