Replies: 5 comments 23 replies
-
Looking at Laravel's model conventions, they allow events to be processed both "before" and "after" a CRUD operation.
Laravel supports both string-based (named) and object-based events. Built-in model events (CRUD operations) are currently implemented using string events. See this StackOverflow discussion on the merits of string vs. object (just as an example). Our current event discovery/caching toolset does not appear to support string-based events. (@ewhanson notes this documentation on interlinking Composer's autoloader with Laravel service provider toolset. This might provide an alternative to our current scan-and-cache event registrant discovery toolset.) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Now that we have adopted
ON DELETE CASCADE
clauses...we should establish some best practices around how/when lifecycle events, events, and queued tasks interact.
Questions:
(Each question has a thread below, please add your comments to the appropriate thread.)
Proposal PRs (WIP -- please check with Alec before doing anything with them):
Beta Was this translation helpful? Give feedback.
All reactions