PHP code example of ivene / operate-log

1. Go to this page and download the library: Download ivene/operate-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/ */

    

ivene / operate-log example snippets


composer san migrate
php artisan vendor:publish --provider="Ivene\OperateLog\OperateLogServiceProvider"
 

return [
    'adminIdSessionKey' =>'Admin_Session_ID', //ADMIN 后台用户ID SessionKey
    'userIdSessionKey'=>'User_Session_ID',    //API 前端用户ID SessionKey
    'listenModel' => [   //需要自动记录的Model 配置后改Model的 create update delete 都会有日志记录
        '\App\Models\Base\BaseCecUser',
    ],
];