未找到特征 'Illuminate\Notifications\HasDatabaseNotifications'
Trait 'Illuminate\Notifications\HasDatabaseNotifications' not found
我将 Laravel 站点部署到 cPanel 共享主机并将我的数据库迁移到主机的数据库。当我尝试通过登录密码进入网站时,错误是:
Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN)
Trait 'Illuminate\Notifications\HasDatabaseNotifications' not found
/path/to/site/vendor/laravel/framework/src/Illuminate/Notifications/Notifiable.php
<?php
namespace Illuminate\Notifications;
trait Notifiable
{
use HasDatabaseNotifications, RoutesNotifications;
}
参数
"Trait 'Illuminate\Notifications\HasDatabaseNotifications' not found"
我的问题通过评论 HasDatabaseNotifications 解决了:
<?php
namespace Illuminate\Notifications;
trait Notifiable
{
use /*HasDatabaseNotifications, */RoutesNotifications;
}
我将 Laravel 站点部署到 cPanel 共享主机并将我的数据库迁移到主机的数据库。当我尝试通过登录密码进入网站时,错误是:
Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN)
Trait 'Illuminate\Notifications\HasDatabaseNotifications' not found
/path/to/site/vendor/laravel/framework/src/Illuminate/Notifications/Notifiable.php
<?php
namespace Illuminate\Notifications;
trait Notifiable
{
use HasDatabaseNotifications, RoutesNotifications;
}
参数
"Trait 'Illuminate\Notifications\HasDatabaseNotifications' not found"
我的问题通过评论 HasDatabaseNotifications 解决了:
<?php
namespace Illuminate\Notifications;
trait Notifiable
{
use /*HasDatabaseNotifications, */RoutesNotifications;
}