<?php
 namespace App\Http\Requests\Admin; use Illuminate\Foundation\Http\FormRequest; class ProductConfigOptionDestroyRequest extends FormRequest { public function authorize(): bool { $productConfigOption = $this->route('productConfigOption'); return $this->user()->can('delete', $productConfigOption); } public function rules(): array { return [ ]; } } 