This repo provides the .devcontainer files needed to start a CodeSpace for Laravel on GitHub.
- Copy .devcontainer folder to your project root
- (Optional) Copy init_codespace.sh to project root
- Push to repo
- Access repo GitHub page, open in CodeSpaces
- Container should build and IDE should open ready for use
- (Optional) Run init_codespace.sh to create .env and run DB migrations/seeds
. ./init_codespace.sh
- CodeSpaces is currently in Closed Beta, you need access to use .devcontainer files
- Includes the following PHP extensions, you can add your own by adjusting the DOCKERFILE
- bcmath mysqli pdo pdo_mysql zip
- To access your site you need to run the following:
php artisan serve
https://github.com/PMessinezis/vscode.laravel.devcontainer/blob/master/Dockerfile