PHP code example of smart-contact / smart-log-client
1. Go to this page and download the library: Download smart-contact/smart-log-client 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/ */
namespace App\Exceptions;
class Handler extends \SmartContact\SmartLogClient\Exceptions\Handler
{
}
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use SmartContact\SmartLogClient\Traits\TrackingApplicationLogs;
class Order extends Model
{
use HasFactory, TrackingApplicationLogs;
//Default
public static $recordEvents = [
'retrieved',
'created',
'updated',
'deleted',
'restored' // if the model