7 months ago

Sending email notification to users

Posted 7 months ago by joseph2035

Hello to everyone!

Please i want to send email notification to users from an Oracle database. The connection of Laravel to Orale is OK. But when trying to send notifications to users, i have the following error:

"Call to undefined method stdClass::routeNotificationFor()" in my_project\vendor\laravel\framework\src\Illuminate\Notifications\Channels\MailChannel.php

This is the code that send notifications:

$end = Carbon::now()->addDays(15)->format('Y-m-d h:m:s'); $users = DB::select("select email from user_table where date>= '$end ' group by email "); Notification::send($users, new CertExpired());

Any help or idea on how to solve this, will be very appreciated!!

Thanks !

Please sign in or create an account to participate in this conversation.