$songs * @property-read array $data */ class SongUpdateRequest extends Request { /** @inheritdoc */ public function rules(): array { return [ 'data' => 'required|array', 'songs' => ['required', 'array', Rule::exists(Song::class, 'id')->whereNull('podcast_id')], ]; } }