Database Environment
.env
DB_DATABASE = YOUR DATABASE
DB_USERNAME = YOUR USERNAME
DB_PASSWORD = YOUR PASSWORD
$ php artisan migrate
Trouble Shooting: 1071 specified key was too long max key length is 767 bytes
AppServiceProvider.php
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
Install Auth
$ composer require laravel/ui
$ php artisan ui bootstrap --auth
$ npm install && npm run dev
'Web Backend > Laravel' 카테고리의 다른 글
Laravel Debugbar (0) | 2020.10.10 |
---|---|
Laravel integrate Adminlte (0) | 2020.07.16 |
Laravel Project with Eclipse (0) | 2020.07.08 |
Laravel Development Environment (on Windows) (0) | 2020.07.07 |