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