Skip to content

Instantly share code, notes, and snippets.


Austin Heap austinheap

View GitHub Profile
austinheap / artisan.php
Last active Aug 29, 2015 — forked from duellsy/artisan.php
More polished version of @duellsy's mod to prompt for confirmation before running Laravel artisan commands on a specific environment (mainly production).
View artisan.php
// Adding this to your app/start/artisan.php file will
// do a quick confirmation that you really do want
// to run this command when in production environment
if (php_sapi_name() == "cli" &&
App::environment() == "production")
You can’t perform that action at this time.