mckenziearts/laravel-notify
Lightweight Laravel package for backend-driven toast notifications. Publish config/assets, drop in a Blade component, and trigger success/error/info messages from your app. Works great with Tailwind CSS and Alpine.js for smooth UI alerts.
NotificationType, NotificationModel) ensures consistency in usage.@notifyCss, @notifyJs), ensuring seamless integration.@source directive.assertSeeInResponse) or livewire tests (if using Livewire) may be needed.file, database, or redis drivers.composer require mckenziearts/laravel-notify
php artisan vendor:publish --tag=notify-config
php artisan vendor:publish --tag=notify-assets
@source directive to app.css.app.js.<x-notify::notify /> in the Blade layout.npm run dev or npm run build.@notifyCss in <head> and @notifyJs before </body>.public/vendor/mckenziearts/laravel-notify/dist/ is accessible.config/notify.php for:
session()->flash('success', '...')) with:
notify()->success()->title('Action completed')->send();
notify()->success()->title('User deleted')->actions([...])->send();
wire:ignore on the notification component to prevent reactivity conflicts.return redirect()->withNotify(...) for API responses.config/notify.php.session()->all() to inspect flash data.How can I help you explore Laravel packages today?