<?php namespace app\company\behavior; class PcAdminLog { public function run(&$response) { //只记录POST请求的日志 if (request()->isPost() && config('pc_admin.auto_record_log')) { \app\common\model\PcAdminLog::record(); } } }