F
Filamentβ€’12mo ago
Bourbakki

Whats the difference between using a classic Laravel Observer and an afterCreate method on Filament?

Title says it all. I want to make a feature where a user is notified when an entry is created on a specific model. Usually I would use an Observer (created) on classic Laravel. But I noticed that Filament has "afterCreate" method, which can be added in the CreateResource.php page. Whats the difference between using the two?
Solution:
The afterCreate method is specifically for Filament "things" you may want to do. Setting up an observer is absolutely fine πŸ™‚
Jump to solution
1 Reply
Solution
Oddman
Oddmanβ€’12mo ago
The afterCreate method is specifically for Filament "things" you may want to do. Setting up an observer is absolutely fine πŸ™‚
Want results from more Discord servers?
Add your server