https://laravel.com/docs/5.2/authentication
代碼: 選擇全部
php artisan make:auth
YehludeMacBook-Pro:rfid yehlu$ php artisan make:auth
Created View: /Users/yehlu/Sites/rfid/resources/views/auth/login.blade.php
Created View: /Users/yehlu/Sites/rfid/resources/views/auth/register.blade.php
Created View: /Users/yehlu/Sites/rfid/resources/views/auth/passwords/email.blade.php
Created View: /Users/yehlu/Sites/rfid/resources/views/auth/passwords/reset.blade.php
Created View: /Users/yehlu/Sites/rfid/resources/views/auth/emails/password.blade.php
Created View: /Users/yehlu/Sites/rfid/resources/views/layouts/app.blade.php
Created View: /Users/yehlu/Sites/rfid/resources/views/home.blade.php
Created View: /Users/yehlu/Sites/rfid/resources/views/welcome.blade.php
Installed HomeController.
Updated Routes File.
Authentication scaffolding generated successfully!
.env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=rfid
DB_USERNAME=root
DB_PASSWORD=root
代碼: 選擇全部
php artisan config:cache
php artisan migrate