Support the ongoing development of Laravel.io →
Requests Mail Queues

Hi guys,

any of you tried to send the notification from inside a Command? I am using the notifiable trait inside the command (what I dont know if it is correct), but the trait is not working. Notify and routeNotificationFor methods can not be found when the command executed.

Any ideas how to do this?

Thanks for help

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

TorchSK torchsk Joined 17 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.