Laravel 模型追加自定义字段

1、追加字段名protected $appends = ['real_status'];2、编写追加字段的获取器public function getRealStatusAttribute() { ... ...