👩💻 Join our community of thousands of amazing developers!
It’s always a good idea to follow best practices when it comes to software development. One of the best practices is to restrict the running of destructive commands on your servers, intentionally or unintentionally. Database commands, for instance, are destructive commands which can cause data loss or corruption. So, we should better restrict running them on our servers. Especially on a production server. Laravel got us covered in this regard. I recently learned about the DB::prohibitDestructive...