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