1. Go to this page and download the library: Download qylinfly/action-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/ */
return [
//Middleware which records the request method
'request_methods'=>['POST','GET'],
//Fill in the name of the model to be logged, which can be multiple
'models'=>['\App\User'],
//Whether it is open
'enable'=>true
];