Laravel Task Scheduler
Laravel Task Scheduler allows you to run scheduled tasks in your Laravel application. This guide will walk you through how to use Laravel Task Scheduler with Spin.
Installation
To install the Laravel Task Scheduler, you will be prompted to include the Laravel Task Scheduler service on install. You simply just need to select it.
What Spin does for you
When you install the Laravel Task Scheduler, Spin will set up a dedicated "Scheduler" service for you. By default, the service runs the following command:
Default Command
php artisan schedule:work
This will run the Laravel Task Scheduler every minute. See the docs with serversideup/php to learn more about how to customize the scheduler.
Usage
When you run spin up
, the scheduler service will automatically run.