In Laravel I learnt of a new method
Command::prohibit();
combined with
DB::prohibitDestructiveCommands();
This should prevent a command from running in your code. The idea is to use on Commands that should not run in production.
However it does not for me.
I have added teh prohibitable trait to my command and called CoursePayment::prohibit() but to no avail, my command still runs. I have tried setting the parameter ratehr than relying on the deault, but no luck. I have tried it in dev and production.
Am I missing something really simple to get prohibit()
working on my Command?
1