Skip to content

Instantly share code, notes, and snippets.

@nunomaduro
Created December 15, 2017 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nunomaduro/02f015d93ffba5d3395aec715e5ec511 to your computer and use it in GitHub Desktop.
Save nunomaduro/02f015d93ffba5d3395aec715e5ec511 to your computer and use it in GitHub Desktop.
Laravel Console Task usage example
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class LaravelInstallCommand extends Command
{
/**
* Execute the console command.
*
* @return void
*/
public function handle()
{
$this->task('Downloading Laravel', function () {
return Laravel::install();
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment