Any notifications are not entered into the Notifications database

im trying to use databaseNotifications for my panel, but its not working,, i already try everything (like migrate the required table) but still not notified about anything (im using export action)
Solution:
nevermind i just need to create jobs table, and change queue_connection = database instead of sync, thanks!!
Jump to solution
13 Replies
Mohamed Ayaou
Mohamed Ayaou3d ago
Did you setup a real-time server like pusher or reverb and runned them?
awcodes
awcodes3d ago
Check your queue_connection in your env. L11 changed the default to database instead of sync, which means notifications won’t run by default without a queue running. Iirc.
Fazaa
FazaaOP3d ago
how can i run queue? by using php artisan queue:listen? can you tell me what is that mean?, bcs i think i didnt setup anything, im just doin by reading the doc
awcodes
awcodes3d ago
I think it’s queue:run Yea. It’s not filament related, but laravel related. Therefore it won’t be in the filament docs. Might be queue:work
Fazaa
FazaaOP3d ago
i think its not queue:run
No description
awcodes
awcodes3d ago
Check the laravel docs. queue:work Or just change your env settings if you don’t actually need queuing Ie, locally for dev you can set it to sync but have it set to database on the actual server with a queue worker running.
Fazaa
FazaaOP3d ago
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laundryan.jobs' doesn't exist how can i create job table? because its not in the doc
Fazaa
FazaaOP3d ago
is it normal if its not showing anything?
No description
awcodes
awcodes3d ago
That should be part of the default migrations in laravel.
Fazaa
FazaaOP3d ago
hmm yeaa thats weird, but i got nothing about job migration
awcodes
awcodes3d ago
I could be thinking of the wrong env variable too. If so, sorry. This has been discussed several times after Laravel 11 was released. Maybe try searching in the help thread.
Solution
Fazaa
Fazaa3d ago
nevermind i just need to create jobs table, and change queue_connection = database instead of sync, thanks!!
Fazaa
FazaaOP3d ago
create jobs table queue_connection = database (env) but what is actually the queue do? can i receive notifications without queue?

Did you find this page helpful?