AdminLog.php 277 B

1234567891011121314
  1. <?php
  2. namespace app\admin\behavior;
  3. class AdminLog
  4. {
  5. public function run(&$response)
  6. {
  7. //只记录POST请求的日志
  8. if (request()->isPost() && config('fastadmin.auto_record_log')) {
  9. \app\admin\model\AdminLog::record();
  10. }
  11. }
  12. }