Back

I needed a way to interact with a resolved controller dependency before the method was executed. Turns out Laravel has support for this out of the box with afterResolvingAttribute().

Check out the example below: duplicates are only prevented when the payment is processed 💫

image

65

0 / 1000