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