*/ public function rules(): array { return [ 'username' => 'required|string|max:255|unique:experts,username', 'first_name' => 'required|string|max:255', 'last_name' => 'required|string|max:255', 'national_id' => 'required|string|max:20|unique:experts,national_id', 'password' => 'required|string|min:8|confirmed', 'email' => 'required|email|max:255|unique:experts,email', 'phone_number' => 'required|string|max:20|unique:experts,phone_number', 'province_id' => 'required|integer|exists:provinces,id', 'city_id' => 'required|integer|exists:cities,id', ]; } }