This feature provides a set of settings and utilities for working with Laravel projects.
"features": {
"ghcr.io/tomgrv/devcontainer-features/larasets:6": {}
}npx tomgrv/devcontainer-features -- add larasets- Configures Laravel environment variables.
- Provides tasks for caching configuration, views, and routes.
- Supports Laravel Sail for containerized development.
- Installs necessary extensions and tools for Laravel development.
The following environment variables are set by default:
APP_DEBUG:trueAPP_ENV:localLARAVEL_SAIL:1DB_CONNECTION:sqliteSAIL_XDEBUG_MODE:develop,debugSAIL_XDEBUG_CONFIG:client_host=host.docker.internal idekey=vscodeXDEBUG_MODE:off
The feature also includes the following VS Code customizations:
-
Extensions:
actboy168.tasksspmeesseman.vscode-taskexplorergruntfuggly.triggertaskonsaveentexa.tall-stackformulahendry.auto-rename-tagformulahendry.auto-close-tagmarabesi.php-import-checkeralexcvzz.vscode-sqlitebmewburn.vscode-intelephense-clientonecentlin.laravel-bladexdebug.php-debugdevsense.composer-php-vscodechristian-kohler.npm-intellisensedavidanson.vscode-markdownlintpcbowers.alpine-intellisenselaravel.vscode-laravelaaron-bond.better-comments
-
Settings:
triggerTaskOnSave.tasks:art-cache-config:**/config.php,config/*.php,.envart-cache-views:packages/**/*.blade.phpart-cache-routes:**/[Rr]outes/*.php
The following utilities are included by default:
init- Initialize the Laravel project by installing dependencies and setting up the environment.sail- Run Laravel Sail commands.seed- Run database migrations and seed the database.art- Run Laravel Artisan commands, locally or within the Laravel Sail environment if it is running.- Use
art <...>as you would do with[php|sail] artisan <...>
- Use
srv- Start and manage PM2 processes, locally or within the Laravel Sail environment if it is running.- Use
srv <...>as you would do with<sail> npm run <...>
- Use
fwd- Manage port forwarding formlocaltoremoterun- Run npm scripts, locally or within the Laravel Sail environment if it is running.- Use
run <...>as you would do with<sail> npm run <...>
- Use
The following utilities are added to root composer:
inst- Install dependencies ignoring platform requirements.link- Configure local repositories.lint- Run Pint linter on staged files (--dirty by default).lock- Validate and update composer.lock with minimal changes.req- Require a package with all dependencies ignoring platform requirements.reqdev- Require a development package with all dependencies.rmv- Remove a package with all dependencies ignoring platform requirements.test- Run Pest tests.test-coverage- Run Pest tests with coverage.upg- Update dependencies with all dependencies ignoring platform requirements.
If you have a feature that you would like to add to this repository, please open an issue or submit a pull request.