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