Edit File: RemoveAddonProductClassifcationRequest.php
<?php namespace App\Http\Requests\Api\Provider\Product\ProductClassification; use App\Http\Requests\Api\BaseApiRequest; class RemoveAddonProductClassifcationRequest extends BaseApiRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the request. * * @return array<string, mixed> */ public function rules() { return [ 'classification_id' => 'required|exists:product_classifications,id', 'addon_id' => 'required|numeric|exists:product_addons,id', ]; } }
Back to File Manager