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