collection->map(fn (VideoScript $script): ScriptResource => new ScriptResource($script, $this->query))->all(); } }