diff --git a/app/Models/Log.php b/app/Models/Log.php index 99f4e46..61b95c5 100644 --- a/app/Models/Log.php +++ b/app/Models/Log.php @@ -2,7 +2,20 @@ namespace App\Models; +use App\Models\traits\Filter; + class Log extends Model { + use Filter; + //查询字段 + public $fieldSearchable = [ + 'moudule', + 'action', + 'target_type', + 'target_id', + 'target_field', + 'user_id', + 'created_at', + ]; }