Created
December 15, 2017 18:32
-
-
Save nunomaduro/02f015d93ffba5d3395aec715e5ec511 to your computer and use it in GitHub Desktop.
Laravel Console Task usage example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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