$songs */ class ChangeSongsVisibilityRequest extends Request { /** @return array */ public function rules(): array { return [ 'songs' => ['required', 'array', Rule::exists(Song::class, 'id')], ]; } public function authorize(): bool { return License::isPlus(); } }