Laravel Tooling Guide

Laravel Package Justfile
# SPDX-License-Identifier: 0BSD
# SPDX-FileCopyrightText: none
#
# Manage the PHP and Laravel toolchain of this package.
# Run the recipes at the project root, not at the `.just` directory.
set working-directory := '..'
HOST := "127.0.0.1"
PORT := "8000"
# Install the Composer dependencies.
install:
composer install
# Serve the workbench application on the PHP development server.
dev host=HOST port=PORT:
@php vendor/bin/testbench workbench:build --ansi
@php vendor/bin/testbench serve --ansi --host="{{ host }}" --port="{{ port }}"
# Run the Pest test suite.
test:
composer test:unit
# Manage the PHP and Laravel toolchain of this package.
[group('laravel')]
mod laravel '.just/php-laravel.just'