First, after the installation is complete Laravel want to open the built-in login page, error
Solution:
Laravel use PHP5.4 new features trait built a very sound simple easy to use user login registration function for a number of no complicated user rights management system, such as a simple management system used within the company.
This feature is very easy to activate, run the following command:
php artisan make:auth
However, they encounter the following problems, suggesting that no such order
Since this function is Laravel 5.2 version, so you have to update your version, reinstall the 5.5. * Version of Laravel
composer create-project --prefer-dist laravel/laravel blog "5.8.*"
Second, the execution time of php artisan migrate command error
Being given a
Illuminate\Database\QueryException : SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = laravel and table_name = migrations and table_type = 'BASE TABLE')
The above error is the database password is incorrect, enter the correct account password can be solved
Two error
Solution: Open /app/Providers/AppServiceProvider.php, add the following code:
use Illuminate\Support\Facades\Schema; //NEW: Import Schema function boot() { Schema::defaultStringLength(191); //NEW: Increase StringLength }
And then execute the command is successful, as shown below: