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