Added Command::run() to the documentation for artisan tasks.

Signed-off-by: Spencer Deinum <spencerdeinum@gmail.com>
This commit is contained in:
Spencer Deinum 2012-08-16 17:18:50 -04:00
parent 64605f2223
commit 6c9d903e58
1 changed files with 9 additions and 1 deletions

View File

@ -38,6 +38,14 @@ #### Calling a task and passing arguments:
php artisan notify taylor php artisan notify taylor
#### Calling a task from your application:
Command::run(array('notify'));
#### Calling a task from your application with arguements:
Command::run(array('notify', 'taylor'));
Remember, you can call specific methods on your task, so, let's add an "urgent" method to the notify task: Remember, you can call specific methods on your task, so, let's add an "urgent" method to the notify task:
#### Adding a method to the task: #### Adding a method to the task: