PHP code example of saasscaleup / laravel-stream-log
1. Go to this page and download the library: Download saasscaleup/laravel-stream-log library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use Saasscaleup\LSL\Facades\LSLFacade;
public function myFunction()
{
LSLFacade::notify('Invoke stream log via Facade 1');
// Some code here
LSLFacade::notify('Invoke stream log via Facade 2');
// Some code here
LSLFacade::notify('Invoke stream log via Facade 3');
// or via helper
stream_log('Invoke stream log via helper 1');
stream_log('Invoke stream log via helper 2');
stream_log('Invoke stream log via helper 3');
}
use Saasscaleup\LSL\Facades\LSLFacade;
public function myMethod()
{
SSEFacade::notify('User purchase plan - step 1', 'info', 'UserPurchase');
// or via helper
stream_log('User purchase plan - step 1', 'info', 'UserPurchase');
}