Skip to content

Instantly share code, notes, and snippets.

@dannyockilson
Created September 3, 2014 11:41
Show Gist options
  • Save dannyockilson/137606f849fe21c35c20 to your computer and use it in GitHub Desktop.
Save dannyockilson/137606f849fe21c35c20 to your computer and use it in GitHub Desktop.
Laravel Testing Batch File (note %WEBROOT% is specified as my WAMP root dir)
@echo off
set /p project=What project are you running?
cd %WEBROOT%\%project%
doskey ls = dir
doskey codecept = vendor\bin\codecept run
doskey codeceptf = vendor\bin\codecept run functional
doskey migrate = php artisan migrate
doskey migrateback = php artisan migrate:rollback
@dannyockilson
Copy link
Author

I use PowerCmd (powercmd.com) and this allows you to set "tools" that run batch files via a toolbar. I set this batch file to run for a tool called "Laravel". When first clicked it asks for the project name (folder name), then cds to that directory and sets up some alias' for laravel migrations and codeception testing, fairly easy to add additional alias in so this is just a shortened version. Also noting line 4 is just cause I always type ls anyway so may as well make it do something useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment