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:Jump to solution
The afterCreate method is specifically for Filament "things" you may want to do. Setting up an observer is absolutely fine π
1 Reply
Solution
The afterCreate method is specifically for Filament "things" you may want to do. Setting up an observer is absolutely fine π