I am trying to send notification (email) using Notifiable trait (notify()) method from a Non User Eloquent Model
Driver Model
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class Driver extends Authenticatable
{
use Notifiable;
}
And to send notification I am using
$driver->notify(new \App\Notifications\Driver\DriverAlloted($booking));
Where $driver is a eloquent model instance (app\Driver.php) and \App\Notifications\Driver\DriverAlloted is the Notification;
If I replace driver with any user (App\User) it works, how can I get it working for App\Driver