Skip to content

Unable to send notifications #118

@ericp1337

Description

@ericp1337

I am getting an error saying that the fields from_id,to_id,category_id are required using this code.
This used to work before, so I am not sure why it doesn't anymore after the new version. Has something changed?

Notifynder::loop($friends, function(NotifynderBuilder $theBuilder, $user) {
                $theBuilder
                    ->category('user.situation.updated')
                    ->to($user)
                    ->from($this->user)
                    ->url(url()->current())
                    ->extra(['username' => $this->user->user_name])
                    ->expire(Carbon::now()->addDay());
            })->sendWithPushNotification();

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions