format('Y-m-d H:i:s'); } public function user(){ return $this->hasOne(SysUser::class,'user_id','log_admin_id')->select('user_id','user_name'); } }