public function updateCompanyName(UpdatesCompanyNames $updater): void
{
$this->resetErrorBag();
$updater->update($this->user, $this->company, $this->state);
$name = $this->state['name'];
$this->dispatchBrowserEvent('refresh-navigation-menu');
Notification::make()
->title(__('Company name updated'))
->success()
->body(__('Your company has been successfully updated'))
->send();
}
public function updateCompanyName(UpdatesCompanyNames $updater): void
{
$this->resetErrorBag();
$updater->update($this->user, $this->company, $this->state);
$name = $this->state['name'];
$this->dispatchBrowserEvent('refresh-navigation-menu');
Notification::make()
->title(__('Company name updated'))
->success()
->body(__('Your company has been successfully updated'))
->send();
}