/laravel-blog

Simple Laravel Blog for a series of blog posts on https://www.levijackson.xyz/posts/create-a-laravel-8-blog-part-1-setup/

Primary LanguagePHPMIT LicenseMIT

Laravel Blog

This is the companion repository for a 7-part series walking through using Laravel to set up barebones blog.

Setup

  1. Start up Laravel

Option 1

If port 80 and 3306 are open on your local machine

./vendor/bin/sail up

Option 2

If port 80 (web) or 3306 (mysql) is in use

APP_PORT=6001 FORWARD_DB_PORT=6002 ./vendor/bin/sail up
  1. Copy the default .env file
cp .env.example .env
  1. Generate application key
./vendor/bin/sail artisan key:generate

Testing

./vendor/bin/sail test