user()->isBroker(); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ 'name' => 'required|string|min:3|max:255', 'bio' => 'required|string|min:10|max:255', 'email' => ['required', 'email', 'max:255', Rule::unique('users')->ignore($this->user()->id)], 'phone' => 'required|string|min:10|max:255', 'location' => 'required|string|min:3|max:255' ]; } }