for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Eddy <[email protected]>
*/
namespace App\Model\Admin;
class Log extends Model
{
protected $guarded = [];
public static $searchField = [
'user_name' => '用户',
'url' => 'URL',
'data' => 'data',
];
public static $listField = [
'ip' => 'IP',
'ua' => 'userAgent',
public function adminUser()
return $this->belongsTo('App\Model\Admin\AdminUser', 'admin_user_id');
}