Manage Laravel Sail containers directly from VS Code. Features include real-time container monitoring, service management (start/stop/restart), integrated shell access, Tinker console, and a visual dashboard for Docker containers. Perfect for Laravel developers using Sail for their development envir
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
A Visual Studio Code extension that provides a seamless integration with Laravel Sail, allowing you to manage your Docker containers directly from VSCode.
Screenshots
Features
📊 Dashboard View
Real-time container status monitoring
Quick access to container controls
Visual representation of running services
🛠 Service Management
View all Laravel Sail services in a tree view
Real-time status updates for each container
Container operations:
Start/Stop containers
Pause/Unpause services
View container statistics
Kill containers when needed
Restart services
🔧 Development Tools
Quick access to Laravel Sail shell
Integrated Laravel Tinker console
View and manage Laravel routes
Direct access to container bash
🚀 Quick Commands
All commands are accessible through the command palette (Ctrl+Shift+P / Cmd+Shift+P):
Laravel Sail: Shell - Open shell in container
Laravel Sail: Bash - Open bash in container
Laravel Sail: Tinker - Open Laravel Tinker
Laravel Sail: Down - Stop all containers
Laravel Sail: Restart - Restart containers
Laravel Sail: Open - Open application in browser
Requirements
Visual Studio Code v1.96.0 or higher
Docker installed and running
Laravel project with Sail installed
WSL2 (for Windows users)
Installation
Open VSCode
Launch Quick Open (Ctrl+P / Cmd+P)
Run the following command:
ext install laravel-sail
Extension Settings
This extension contributes the following settings:
laravelSail.phpPath: Path to PHP executable (default: "php")
Windows users: Use forward slashes even in Windows paths, e.g., "C:/php/php.exe"
laravelSail.sailPath: Path to Sail executable (default: "./vendor/bin/sail")
Use relative paths from your project root
laravelSail.composerPath: Path to Composer executable (default: "composer")
Windows users: Consider using the WSL Composer installation
laravelSail.artisanPath: Path to Artisan executable (default: "artisan")
Use relative paths from your project root
laravelSail.checkInterval: Interval to check sail status in milliseconds (default: 5000)
Note for Windows Users:
All paths are automatically converted to WSL paths when needed
Using WSL's built-in PHP and Composer is recommended for best compatibility
Avoid using Windows-specific absolute paths
Usage
Open your Laravel project in VSCode
Click on the Laravel Sail icon in the activity bar
Use the dashboard to manage your containers
Access commands through:
Command palette
Context menus in the Services view
Dashboard buttons
Features in Detail
Container Dashboard
Visual overview of all running containers
Quick access buttons for common operations
Real-time status updates
Services View
Tree view of all services defined in your Sail configuration
Laravel Sail is a light-weight command-line interface for interacting with Laravel's default Docker development environment. This extension aims to make it even easier to use Sail within VSCode.