Skip to content

elegant-george/Laravel-From-Scratch

Repository files navigation

Description

This is a simple site that I following this tutorial created.

You can find the instructor's version here.

How to use

I use Sail to run this repository in WSL.

The following will share my method.

prerequisite


  1. use git clone or any method to clone this project to your local.
  2. run cp .env.example .env
  3. run
  docker run --rm \
    -u "$(id -u):$(id -g)" \
    -v $(pwd):/var/www/html \
    -w /var/www/html \
    laravelsail/php81-composer:latest \
    composer install --ignore-platform-reqs
  1. run ./vendor/bin/sail up -d
  2. run ./vendor/bin/sail artisan key:generate
  3. run ./vendor/bin/sail artisan migrate or ./vendor/bin/sail artisan migrate --seed
  4. open browser and go to http://localhost

Releases

No releases published

Packages

No packages published

Languages