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.
PHP
Run seeders from migrations
A practical look at why you should populate essential data from migrations instead of seeders. Once your app is live, manually running seeders becomes a deployment risk. Migrations are deterministic, automatic, and roll back cleanly. Read more…