Like this:
Notification::route('mail', '[email protected]')
->route('nexmo', '5555555555')
->notify(new InvoicePaid($invoice));
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello everybody, I am new here and quite new to Laravel too.
I have to build a notification system for the main website of my company. (for example to display new messages between users). We use Laravel, but we don't use Eloquent models.
So I dont want to reinvent the wheel, but I can't find a way to use Laravel notifications without extending Model class from Eloquent.
I followed this documentation: https://laravel.com/docs/5.6/notifications I want my notifications to be stored in database and to be sent by email. I made my Notification class but I can't use the notify method and I can't use the notifications and unreadNotifications attributes as I don't extend Model from my User class.
I would be very grateful for your help as I can't find a simple solution on the web.
Please or to participate in this conversation.