Here’s a cool post by Tom McFarlin how you can use Ray in WordPress to easily see a the callers of a function. This doesn’t only work in WordPress but any Laravel and PHP app.
PHP
Preventing Destructive Commands from Running in Laravel
Read about how to use the IlluminateConsoleProhibitable trait to prevent destructive commands from running in your Laravel application. We’ll also look at how to prevent your own custom Artisan commands from running using this trait. Read more…