con un clic
notify-alert
Use Laragear Alerts as a channel for Laravel Notifications.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Use Laragear Alerts as a channel for Laravel Notifications.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
| name | notify-alert |
| description | Use Laragear Alerts as a channel for Laravel Notifications. |
Use this skill when you want Laravel Notifications to be delivered as alerts in your application's frontend.
Add Laragear\Alerts\AlertChannel::class to the via() method of your notification.
use Laragear\Alerts\AlertChannel;
public function via(object $notifiable): array
{
return [AlertChannel::class, 'mail'];
}
Implement the toAlert() method to return an Alert instance. It's recommended to use make() instead of push() here.
use App\Alerts\MyAlert;
use Laragear\Alerts\Alert;
public function toAlert(object $notifiable): Alert
{
return MyAlert::make()
->set('type', 'success')
->set('body', 'Your report is ready!');
}
The AlertChannel only works during a web request. If the notification is sent via a background queue that doesn't share the same session/request context, the alert will not be visible to the user unless they are using a persistent storage or broadcasting.