Clone laravel-bjyblog with git:
git clone https://github.com/baijunyao/laravel-bjyblog.git && cd laravel-bjyblog
Rename the .env.example
file to .env
:
cp .env.example .env
Change .env
config
For example:
config | value |
---|---|
APP_NAME | bjyblog |
APP_URL | https://baijunyao.com |
DB_DATABASE | laravel_bjyblog |
DB_USERNAME | laravel_bjyblog |
DB_PASSWORD | *** |
Composer install:
composer install
Application Key:
php artisan key:generate
Migrate:
php artisan migrate
Seed:
php artisan db:seed
If you visit the site before db:seed
, you need to clear cache:
php artisan cache:clear
To create the symbolic link:
php artisan storage:link
Create Passport keys
php artisan passport:keys