Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 1.45 KB

README.md

File metadata and controls

63 lines (45 loc) · 1.45 KB

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.