Skip to content

Instantly share code, notes, and snippets.

@alexwhitman
alexwhitman / artisan
Created October 13, 2013 20:46
artisan helper script to allow running of artisan in any sub-directory within the project.
#!/bin/sh
FOUND=0
CHECK=`pwd`
until [ $FOUND -eq 1 ]; do
if [ -f $CHECK/artisan ]; then
php $CHECK/artisan "$@"
FOUND=1
else
if [ $CHECK = '/' ]; then