Skip to main content
Version: 1.x

Sample App

https://github.com/durable-workflow/sample-app/tree/Laravel-12

This is a sample Laravel 12 application with example workflows that you can run inside a GitHub codespace. The Laravel-12 branch preserves the Laravel 12 + Durable Workflow 1.x snapshot that these v1 docs describe; the repo's main branch now tracks Laravel 13 + Durable Workflow 2.x (see the 2.x docs).

Step 1

Create a codespace from the Laravel-12 branch of this repo.

image

Step 2

Once the codespace has been created, wait for the codespace to build. This should take between 5 to 10 minutes.

Step 3

Once it is done. You will see the editor and the terminal at the bottom.

image

Step 4

Run composer install.

composer install

Step 5

Run the init command to setup the app, install extra dependencies and run the migrations.

php artisan app:init

Step 6

Start the queue worker. This will enable the processing of workflows and activities.

php artisan queue:work

Step 7

Create a new terminal window.

image

Step 8

Start the example workflow inside the new terminal window.

php artisan app:workflow

Step 9

You can view the waterline dashboard at https://[your-codespace-name]-80.preview.app.github.dev/waterline/dashboard.

image

Step 10

Run the workflow and activity tests.

php artisan test

That's it! You can now create and test workflows.