Skip to content

Don't work for guest (null) users #39

@4n70w4

Description

@4n70w4

Hi! I use https://github.com/jrseliga/pseudo for able guest users with null id.

But don't work send notifications to guest users:

Illuminate/Database/QueryException with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'notifiable_id' cannot be null (SQL: insert into `notifications` (`id`, `type`, `data`, `read_at`, `notifiable_id`, `notifiable_type`, `updated_at`, `created_at`) values (28d892ed-dfcf-4603-aeb2-ab9fa35c93b9, App/Notifications/TestNotification, {"level":"info","message":"Test message","url":"https:////coreproc.com","target":"_self"}, ?, ?, Pseudo/Auth/Guest, 2021-01-11 09:01:13, 2021-01-11 09:01:13))'

I manually alter table and change to nullable. Message saved to table but realtime pushes don't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions