我尝试发出通知,但发生此错误
"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db_paktikum_prognet.notifications' doesn't exist (SQL: select * from `notifications` where `notificat ▶"
我已经定义了模型,并设置了$ protected table ='my table name',但是它确实起作用了
这是我的模型代码
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\DatabaseNotification;
class admin_notification extends Model
{
protected $table = 'admin_notifications';
}
我希望使用表名进行通知