You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started playing with this today. Looks super interesting and complete.
Question though. One of my existing store methods triggers a Job to process the request in the background.
So I figured I could "just" add a performStore method in my controller and add that dispatch($request->validated()) logic there too.
But it seems like that doesn't play nice. As I'm getting an "Attempt to assign property "wasRecentlyCreated" on null" error. Am I not doing it in the expected way? Tips? Tricks on how to work with Jobs/ Events?
Edit: the error stated above occurs in /var/www/html/vendor/tailflow/laravel-orion/src/Concerns/HandlesStandardOperations.php:199, I've kept transactions.enabled in the config set to false
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I started playing with this today. Looks super interesting and complete.
Question though. One of my existing store methods triggers a Job to process the request in the background.
So I figured I could "just" add a
performStore
method in my controller and add thatdispatch($request->validated())
logic there too.But it seems like that doesn't play nice. As I'm getting an
"Attempt to assign property "wasRecentlyCreated" on null"
error. Am I not doing it in the expected way? Tips? Tricks on how to work with Jobs/ Events?Edit: the error stated above occurs in
/var/www/html/vendor/tailflow/laravel-orion/src/Concerns/HandlesStandardOperations.php:199
, I've kept transactions.enabled in the config set tofalse
Beta Was this translation helpful? Give feedback.
All reactions