Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 818 Bytes

run-tasks.md

File metadata and controls

26 lines (19 loc) · 818 Bytes
title description
Run tasks
Scheduler allows you to fluently and expressively define your command schedule

Run tasks

Console applications are used most of the times for performing tasks and giving output of the result of task is important to the end-user. With Laravel Zero, you can use the task method to return a result from the task code:

$this->task("Installing Laravel", function () {
    return true;
});

$this->task("Doing something else", function () {
    return false;
});

The code above will output the following result:

Get more details: https://github.com/nunomaduro/laravel-console-task.