<?php
 namespace App\Http\Requests\Admin; use Illuminate\Foundation\Http\FormRequest; class CommonGetCitiesRequest extends FormRequest { public function authorize(): bool { return $this->user() !== null; } public function rules(): array { return [ 'country_id' => 'required|exists:countries,id', ]; } public function messages(): array { return [ 'country_id.required' => __('admin/common.validation.country_id.required'), 'country_id.exists' => __('admin/common.validation.country_id.exists'), ]; } } 