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