File an issue by visiting the repo and following the issue reporting guidelines.
Jan 3, 2017
7
Level 13
Column 'notifications.notifiable_id' Not Found (BUG)
I found a problem with Notifications in Spark 3.0. After I create a notification:
$this->notifications->create($user, [
'icon' => 'fa-check-circle',
'body' => 'Some text message',
]);
I see it appear in the sidebar under Notifications. However, when I open it, a request fails behind the scenes:
QueryException in Connection.php line 770:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'notifications.notifiable_id' in 'where clause' (SQL: update `notifications` set `read` = 1, `updated_at` = 2017-01-03 17:02:10 where `notifications`.`notifiable_id` = 6 and `notifications`.`notifiable_id` is not null and `notifications`.`notifiable_type` = App\User and `id` in (<some_id_here...>) order by `created_at` desc)
The failure originates in the NotificationController.php on line 63 at markAsRead method. Any ideas why? I did not do any code customization so I don't see why this would happen.
Please or to participate in this conversation.