Create own model for notifications
<?php
namespace App\Models;
use Illuminate\Notifications\DatabaseNotification;
class Notification extends DatabaseNotification
{
protected $connection = 'myusers';
}
And in the User model replace default relationship with your own model for notifications
<?php
namespace App\Models;
use App\Models\Notification;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
use Notifiable;
protected $connection = 'myusers';
/**
* Get the entity's notifications.
*/
public function notifications()
{
return $this->morphMany(Notification::class, 'notifiable');
}
}