From 6c9d903e584f9b3a09c01d8c96bcc33015286efb Mon Sep 17 00:00:00 2001 From: Spencer Deinum Date: Thu, 16 Aug 2012 17:18:50 -0400 Subject: [PATCH] Added Command::run() to the documentation for artisan tasks. Signed-off-by: Spencer Deinum --- laravel/documentation/artisan/tasks.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/laravel/documentation/artisan/tasks.md b/laravel/documentation/artisan/tasks.md index 08e6606c..a5ab78b6 100644 --- a/laravel/documentation/artisan/tasks.md +++ b/laravel/documentation/artisan/tasks.md @@ -38,6 +38,14 @@ #### Calling a task and passing arguments: 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: #### Adding a method to the task: @@ -97,4 +105,4 @@ #### Setting the Laravel environment: #### Setting the default database connection: - php artisan foo --database=sqlite \ No newline at end of file + php artisan foo --database=sqlite