Open mstfkhazaal opened 1 month ago
Hi there. It seems your repo does not have the Notifications table migration, according to the docs:
Before we start, make sure that the Laravel notifications table is added to your database:
php artisan make:notifications-table
php artisan notifications:table
If you're using PostgreSQL, make sure that the data column in the migration is using json(): $table->json('data').
If you're using UUIDs for your User model, make sure that your notifiable column is using uuidMorphs(): $table->uuidMorphs('notifiable').
I had the same problem and solved it by changing:
$table->text('data');
to
$table->json('data');
in notifications migration!
I also have this problem. my finding is the operator not working in postgres 9.2 or earlier, the operator '->>' maybe only work in postgre 9.3 and newer.
Package
filament/filament
Package Version
v3.2.117
Laravel Version
v11.27.2
Livewire Version
No response
PHP Version
PHP 8.2
Problem description
Database Notifications Not work When i Use Postgres
I get this error:
Expected behavior
Work Normal
Steps to reproduce
sail up -d
)Reproduction repository (issue will be closed if this is not valid)
https://github.com/mstfkhazaal/postgres_notification/
Relevant log output
Donate 💰 to fund this issue