Articles tagged with #l4

Add a command file to Laravel artisan

In order to run a custom command from the command line utility called artisan you need to do two things: Create a new CustomCommand file Register that command with artisan Here's a sample Command file called FooCommand.php which should be placed in app/commands/ [php]

How to set local environment as default in command line (CLI) for Larvel 4 artisan

Typically when Laravel 4 artisan is run from the command line (cli) it uses the production configuration files. This can be changed by using a flag when running the command. [ps]php artisan migrate --env=local[/ps] However, adding --env-=local each time while running a script can slow down …