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:Jump to solution
nevermind i just need to create jobs table, and change queue_connection = database instead of sync, thanks!!
13 Replies
Did you setup a real-time server like pusher or reverb and runned them?
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.
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
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
i think its not queue:run
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.
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
is it normal if its not showing anything?
That should be part of the default migrations in laravel.
hmm yeaa thats weird, but i got nothing about job migration
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
nevermind i just need to create jobs table, and change queue_connection = database instead of sync, thanks!!
create jobs table
queue_connection = database (env)
but what is actually the queue do? can i receive notifications without queue?