Skip to content

Instantly share code, notes, and snippets.

View austinheap's full-sized avatar
🌈

Austin Heap austinheap

🌈
View GitHub Profile
@austinheap
austinheap / artisan.php
Last active August 29, 2015 13:58 — 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).
<?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")
{