withIntermediatePaths([ new AllowedInclude(new VideoSchema(), VideoScript::RELATION_VIDEO), ]); } /** * @return Field[] */ public function fields(): array { return array_merge( parent::fields(), [ new ScriptIdField($this), new ScriptPathField($this), new ScriptLinkField($this), new ScriptVideoIdField($this), ], ); } /** * Get the model of the schema. */ public function model(): VideoScript { return new VideoScript(); } }