Beyond the Basics: Master Community Starter Kits with the Laravel Installer
Overview of Custom Starter Kits
While
Prerequisites
To follow this guide, you should have a solid grasp of
Key Libraries & Tools
- Laravel Installer: The command-line utility used to create new projects.
- Laravel Herd: A fast, lightweight development environment for macOS and Windows.
- Wave: A popular community starter kit byDevDojospecifically forSaaSdevelopment.
Code Walkthrough: Using the New Parameter
The core of this update is the --using parameter. Instead of relying on the interactive prompt to select official kits, you point the installer directly to a
laravel new my-awesome-project --using="devdojo/wave"
The installer performs several tasks behind the scenes. First, it clones the repository specified in the vendor/repo format. Once the files are local, it handles the standard
# The installer will ask:
# "Would you like to run npm install and npm build?"
By selecting yes, the installer finishes the frontend scaffolding, leaving you with a fully functional, customized application environment.
Syntax Notes
The --using flag follows a specific convention: organization/repository. This mirrors how you require packages in
Practical Examples and One-Click Installs
A powerful new feature is the integration with
Tips & Gotchas
Always verify the source of a community kit before running it. Since the installer clones and executes code from these repositories, ensure you trust the maintainer. If your custom kit requires specific environment variables, remember to check the .env.example file immediately after installation, as the generic
