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