jeudi 23 mai 2019

base table for notification not found when i try to make notification with diff table name

I try to make notification but this error happen

"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db_paktikum_prognet.notifications' doesn't exist (SQL: select * from `notifications` where `notificat ▶"

I already define model and make $protected table = 'my table name' but it doenst work

and here is my model code

    <?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\DatabaseNotification;
class admin_notification extends Model
{
    protected $table = 'admin_notifications';
}

I expected to use my table name for notification



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2HRBCg9
via IFTTT

Aucun commentaire:

Enregistrer un commentaire