Livewire component event

In the Laravel Livewire boot camp, when creating chirps, the author dispatches an event! In my code, should I need to dispatch an event?
public function create(): void
{
abort_if(auth()->guest(), Response::HTTP_FORBIDDEN);

$resume = Auth::user()
->resume()
->create($this->form->getState());

$this->form->model($resume)->saveRelationships();

$this->redirect('/resume');
}
public function create(): void
{
abort_if(auth()->guest(), Response::HTTP_FORBIDDEN);

$resume = Auth::user()
->resume()
->create($this->form->getState());

$this->form->model($resume)->saveRelationships();

$this->redirect('/resume');
}
1 Reply
Shaung Bhone
Shaung BhoneOP12mo ago
.
Want results from more Discord servers?
Add your server