user()->can('edit', $this->user); } public function rules() { return [ 'first_name' => 'required|string|max:100', 'last_name' => 'required|string:max:100', 'email' => new UniqueUserRule(), ]; } }