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