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