Merge pull request #1105 from spencerdeinum/master
Add Command::run() to artisan documentation.
This commit is contained in:
commit
722de55eeb
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue