laravel-notification-channels) that achieve similar functionality without Symfony dependencies.friendsofsymfony/jsrouting-bundle, which is Symfony-only. Laravel’s routing system (e.g., route() helpers) would need to be manually mapped to Alertify’s JS routing if used.spatie/laravel-notification-tools)?window.addEventListener).@alertify('success', 'Message')).friendsofsymfony/jsrouting-bundle with Laravel’s native routing (e.g., route('alertify.path') in JS).// resources/js/alertify.js
document.addEventListener('DOMContentLoaded', () => {
alertify.success('@json($message)');
});
@push('scripts')
<script>window.alertifyMessage = '@json($message)';</script>
@endpush
// app/Providers/AlertifyServiceProvider.php
public function boot()
{
Blade::directive('alertify', function ($message) {
return "alertify.success({$message});";
});
}
spatie/laravel-notification-tools).How can I help you explore Laravel packages today?