hasOne(PluginShortplayCharacterLook::class, 'id', 'character_look_id'); } public static function processing($where = []) { return self::where($where)->whereIn('status', [ActorStatus::INITIALIZING['value'], ActorStatus::PENDING['value']])->count(); } public static function onAfterRead($model) { $model->status_enum = ActorStatus::get($model->status); } }