Preset Management
Presets are pre-configured Laravel project templates that help you start new projects with a solid foundation.
Listing Presets
View all available presets:
bash
laravel-dev preset:listThis command displays:
- Preset name and description
- Laravel version compatibility
- Categories and tags
- Installation requirements
Filtering Presets
Filter presets by category:
bash
laravel-dev preset:list --category=apiFilter by Laravel version:
bash
laravel-dev preset:list --version=11Available Presets
Standard Presets
- basic: Minimal Laravel setup with essential packages
- api: Optimized for API development with Sanctum
- spa: Single Page Application ready with frontend scaffolding
- full-stack: Complete setup with admin panel and auth
Specialized Presets
- ecommerce: E-commerce ready with payment integration
- saas: Multi-tenant SaaS application template
- blog: Content management focused preset
- microservice: Microservice architecture ready
Creating Projects
Basic Usage
bash
laravel-dev new my-projectThe CLI will prompt you to select a preset interactively.
Direct Preset Selection
bash
laravel-dev new my-project --preset=apiCustom Configuration
Specify additional options:
bash
laravel-dev new my-project --preset=api --version=11Creating Custom Presets
You can create your own presets by extending the default Laravel structure:
bash
laravel-dev preset:create my-custom-presetThis will:
- Create a new preset directory
- Generate preset configuration files
- Set up template files and resources
Preset Structure
my-custom-preset/
├── preset.json # Preset metadata
├── composer.json # Dependencies
├── package.json # Frontend dependencies
├── resources/ # Template resources
│ ├── views/
│ ├── assets/
│ └── config/
└── scripts/ # Installation scriptsUpdating Presets
Check for preset updates:
bash
laravel-dev preset:update --checkUpdate all presets:
bash
laravel-dev preset:updateBest Practices
- Choose the Right Preset: Start with the preset that matches your project type
- Customize After Installation: Modify the generated project to fit your needs
- Keep Presets Updated: Regularly update presets for security and features
- Version Compatibility: Ensure preset matches your target Laravel version
Next Steps
- Explore AI Platform Integration
- Read the Commands Reference