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