Complete Laravel Stack
Everything Laravel needs out of the box:
- PHP 8.2+ with all required extensions
- Mailpit for email testing
DAMP makes Laravel development effortless with one-click project creation. Get a fully configured Laravel environment with database, SSL, debugging, and all development tools ready in under 2 minutes.
Traditional Laravel setup involves multiple steps and potential issues:
Complete Laravel Stack
Everything Laravel needs out of the box:
Development Tools
Professional development environment:
Production-Like Setup
Develop like you deploy:
Open DAMP
Launch DAMP from your applications menu or system tray.
Click “New Project”
Click the “New Project” button in the DAMP dashboard.
Select Laravel Template
Choose “Laravel” from the project templates.
Configure Project
Fill in your project details:
my-blog
8.2
(recommended)Create Project
Click “Create Project” and wait for setup to complete:
Folder structure:
// .devcontainer/devcontainer.json (auto-generated){ "name": "laravel1", "workspaceMount": "source=damp_site_laravel1,target=/workspace,type=volume", "workspaceFolder": "/workspace/laravel1", //"image": "mcr.microsoft.com/devcontainers/php:1-8.4", "build": { "dockerfile": "./Dockerfile", "context": ".", "args": { // Update VARIANT to pick a PHP version: 8, 8.1, 8.0, 7, 7.4 // Append -bullseye or -buster to pin to an OS version. // Use -bullseye variants on local on arm64/Apple Silicon. "VARIANT": "8.4" } }, // Features to add to the dev container. More info: https://containers.dev/features. "features": { "ghcr.io/devcontainers/features/node:1": { "version": "latest" }, // "ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}, // Add Claude AI feature "ghcr.io/opencodeco/devcontainers/install-php-extensions:0": { "extensions": "bcmath pdo_mysql pcntl mysqli intl zip gd" } }, // Configure tool-specific properties. "customizations": { // Configure properties specific to VS Code. "vscode": { "settings": {}, "extensions": [ "streetsidesoftware.code-spell-checker" ] } }, "mounts": [ "source=damp_site_laravel1,target=/usr/local/etc/php/conf.d/php.ini,type=volume,volume-subpath=laravel1/.devcontainer/php.ini", "source=damp_site_laravel1,target=/usr/local/etc/php/conf.d/z-xdebug.ini,type=volume,volume-subpath=laravel1/.devcontainer/xdebug.ini" ], // Specify docker network(s) in devcontainer.json "runArgs": [ "--network=devnet", "--name", "laravel1_devcontainer" ], // Use 'forwardPorts' to make a list of ports inside the container available locally. "forwardPorts": [8080], // Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": "npm install && npm run build", // Use 'postStartCommand' to run commands after the container starts. "postStartCommand": "composer run devcontainer" // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root"}
Your Laravel project includes:
Common commands you’ll use:
# Artisan commandsphp artisan make:model Post -mcr # Model with migration, controller, resourcephp artisan make:controller BlogControllerphp artisan make:middleware AuthCheckphp artisan make:request PostRequest
# Database operationsphp artisan migrate # Run migrationsphp artisan migrate:fresh --seed # Fresh migration with seedersphp artisan db:seed # Run database seeders
# Development toolsphp artisan serve # Not needed (DAMP handles this)php artisan tinker # Interactive PHP shellphp artisan route:list # List all routesphp artisan config:cache # Cache configuration
DAMP automatically configures Laravel for optimal development.
You can find php.ini
and xdebug.ini
files in .devcontainer
folder
Customize PHP settings in DAMP project settings:
# PHP optimizations for Laravelmemory_limit = 256Mmax_execution_time = 60upload_max_filesize = 10Mpost_max_size = 10Mmax_input_vars = 3000
# Development settingsdisplay_errors = Onerror_reporting = E_ALLlog_errors = On
Symptoms: Dependencies fail to install
Solutions:
composer clear-cache
composer self-update
Symptoms: Laravel can’t connect to database
Solutions:
.env
filephp artisan tinkerDB::connection()->getPdo();
Symptoms: Frontend assets not compiling
Solutions:
npm install
npm cache clean --force
npm run dev
Symptoms: Laravel application running slowly
Solutions:
composer install --optimize-autoloader
php artisan config:cache
# Install Laravel Debugbarcomposer require barryvdh/laravel-debugbar --dev
# Publish configurationphp artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"
# Install Telescopecomposer require laravel/telescope --devphp artisan telescope:installphp artisan migrate
# View Laravel logstail -f storage/logs/laravel.log
# Clear logsecho "" > storage/logs/laravel.log
# Custom loggingLog::info('Debug message', ['user_id' => auth()->id()]);
DAMP’s one-click Laravel installation removes all the setup friction, letting you focus on building amazing applications rather than configuring development environments.