Skip to content
/ codespaces-laravel Public template

A public template to start exploring the Laravel Framework using Github Codespaces.

Notifications You must be signed in to change notification settings

tammytee/codespaces-laravel

Repository files navigation

GitHub Codespaces + Laravel

This Codespace has everything you need to start exploring the Laravel Framework.

Specs

Github Codespace Specs
Container Definition PHP & MariaDB (MySQL compatible) php 8.2-bullseye
Extensions
SQLTools Database management for VS Code mtxr.sqltools
SQLTools MySQL Driver mtxr.sqltools-driver-mysql

Getting Started

Optionally customize the database environment variables in docker-compose.yml. All values are set to mariadb by default:

db:
    # ...

    environment:
      MYSQL_ROOT_PASSWORD:
      MYSQL_DATABASE:
      MYSQL_USER:
      MYSQL_PASSWORD:

Then apply those values in your .env file:

DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=

Finally, migrate and seed your database:

php artisan migrate
php artisan db:seed

Building the project

To bundle your assets

npm run dev

To bundle your assets for production

npm run build

To serve your project

php artisan serve

Github Codespaces will automatically forward ports so you can view the running project on your local machine.

About

A public template to start exploring the Laravel Framework using Github Codespaces.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published