Athena is a premium package,
get your license here
On this page
Available Events
Athena will fire these events:
-
LaraZeus\Athena\Events\AppointmentCreated
Register a Listener:
- First, create your listener:
1php artisan make:listener SendAthenaNotification --event=AppointmentCreated
- Second, register the listener in your
EventServiceProvider
1protected $listen = [2 //...3 AppointmentCreated::class => [4 SendAthenaNotification::class,5 ],6];
- Finally, you can receive the form object in the
handle
method and do whatever you want. For example:
1Mail::to(User::first())->send(new Contact(2 $event->Appointment->subject, $event->user->email, $event->Appointment->subject3));