Skip to content

F9mm/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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 79.8%
  • Blade 17.8%
  • Dockerfile 1.1%
  • Other 1.3%