I want to change notification table name, so I changed the migration file:
php artisan notification:table
Schema::create('member_notifications', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->string('type');
$table->morphs('notifiable');
$table->text('data');
$table->timestamp('read_at')->nullable();
$table->timestamps();
});
And trying to use $table in Notification class :
protected $table = 'member_notifications';
But when I trying to store notification in database I get this error:
SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "notifications" does not exist