Replies: 1 comment 2 replies
-
Hey, The package comes with a I'm open to any PR's if you have any other ideas. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For my use case, I would like models to update and create normally and only require approval in certain circumstances. What is the best way to do that?
What I want:
$model->create(); // no approval checking
$model->update(); // no approval checking
$model->turnOnApproval();
$model->update(); // with approval checking
$model->turnOffApproval();
$model->create(); // no approval checking
What I've tried:
I tried making a
MaytBeApproved
trait as follows, without much luck. I also tried to make awithApproval
method, but that didn't work either. You can see my progress at https://github.com/mankowitz/approvalBeta Was this translation helpful? Give feedback.
All reactions