Web Backend/Laravel
Laravel Login
xProgrammer
2020. 7. 15. 21:32
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