Modals can be a pain in the ass, but there’s no way around them. I’m currently working on an application where we need them. Whilst working with Inertia.js and Vue.js we have many options available, let’s have a look how I solved this issue.
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…