Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

avonian's avatar

Spark Notifications error

Hi,

I setup spark and most of it appears to be working perfectly, but after notifications they aren't clearing. When I inspect the call that goes to '/notifications/read ' I see the following error:

SQLSTATE[42703]: Undefined column: 7 ERROR: column notifications.notifiable_id does not exist
LINE 1: ...cations" set "read" = $1, "updated_at" = $2 where "notificat...
^ (SQL: update "notifications" set "read" = 1, "updated_at" = 2017-01-23 13:43:15 where "notifications"."notifiable_id" = 1 and "notifications"."notifiable_id" is not null and "notifications"."notifiable_type" = App\User and "id" in (d5e1ce0f-e9bc-4c3c-9235-03b2f304074a))

I built the DB using php artisan migrate, and it's all in order, but I don't see notifications.notifiable_id in there, so I'm not sure if I should create it, or if something else is wrong with my setup.

Would appreciate any help!

Thanks

0 likes
3 replies
avonian's avatar

Nevermind I had to join the Spark repo, I figured it out, thanks.

Please or to participate in this conversation.