© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•4w ago•
9 replies
lukaveck1

Notification doesn't get created while running a job

✅ Solved4️⃣v4
I'm running a job and trying to create a Notification, but it doesn't get created.

I'm creating notification as shown below and everything looks okay, I've also went over the two points below and everything is in order:

1.) My User model is using UUIDS and I've included that in my migration file as docs say:

If you’re using UUIDs for your User model, make sure that your notifiable column is using uuidMorphs(): $table->uuidMorphs('notifiable').

2.) I've included Notifiable trait in my User model.

public function created(IdentityConflict $identityConflict): void
    {
        $recipient = User::role('admin')->first();

        if ($recipient) {
            $notification = Notification::make()
                ->title('Saved successfully')
                ->actions([
                    Action::make('view')
                        ->button()
                        ->url(
                            fn () => IdentityConflictResource::getUrl('view', [
                                'record' => $identityConflict->id,
                            ]),
                            shouldOpenInNewTab: true
                        ),
                ])
                ->sendToDatabase($recipient);
        }...
public function created(IdentityConflict $identityConflict): void
    {
        $recipient = User::role('admin')->first();

        if ($recipient) {
            $notification = Notification::make()
                ->title('Saved successfully')
                ->actions([
                    Action::make('view')
                        ->button()
                        ->url(
                            fn () => IdentityConflictResource::getUrl('view', [
                                'record' => $identityConflict->id,
                            ]),
                            shouldOpenInNewTab: true
                        ),
                ])
                ->sendToDatabase($recipient);
        }...


Everything seems fine, but nothing gets created in my notifications table
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Importer doesn't create a job on production
FilamentFFilament / ❓┊help
2y ago
Notification Bell and Doesn't Show
FilamentFFilament / ❓┊help
3y ago
Database Notification not being created
FilamentFFilament / ❓┊help
3y ago
Sending Notification from Job requires page reload
FilamentFFilament / ❓┊help
3y ago