Поэтому я глубоко вошел внутрь в Code и обнаружил, что использует метод routenotification for из routesnotifications , поэтому я, поэтому я Решил переопределить его для моего желаемого поведения. < /p>
исходный код метода: < /p>
Код: Выделить всё
public function routeNotificationFor($driver)
{
if (method_exists($this, $method = 'routeNotificationFor'.Str::studly($driver))) {
return $this->{$method}();
}
switch ($driver) {
case 'database':
return $this->notifications();
case 'mail':
return $this->email;
case 'nexmo':
return $this->phone_number;
}
}
Подробнее здесь: https://stackoverflow.com/questions/524 ... it-laravel
Мобильная версия