Skip to content

Instantly share code, notes, and snippets.

Austin Heap austinheap

Block or report user

Report or block austinheap

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.