with one click
notify-alert
Use Laragear Alerts as a channel for Laravel Notifications.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Use Laragear Alerts as a channel for Laravel Notifications.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| 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.