© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
8 replies
_max28

Customizing the creation process

Hi guys, could you tell me how I can insert the mandatory return without creating the record since the ApplyCashback Job that applies custom dynamics already does it?
protected function handleRecordCreation(array $data): Model
{
    ApplyCashback::dispatch($data['userId'], $data['serviceId']); // Job with creating logic
    return static::getModel()::create($data); // I don't need to create another record
}
protected function handleRecordCreation(array $data): Model
{
    ApplyCashback::dispatch($data['userId'], $data['serviceId']); // Job with creating logic
    return static::getModel()::create($data); // I don't need to create another record
}
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

Customizing the creation process of relationship
FilamentFFilament / ❓┊help
3y ago
Halting the creation process
FilamentFFilament / ❓┊help
2y ago
Customizing update process globally
FilamentFFilament / ❓┊help
2y ago
add relationships to record during the creation process
FilamentFFilament / ❓┊help
13mo ago