laravel started some small problems

Work is mainly used in .NET, PHP just my amateur like a language, and has been used before is yii2 framework Yii2 think is the best framework, however, laravel reputation in the industry too much, known as : the most elegant framework, so I decided to take a moment to look at this laravel.

General learning, I like to go straight to the official website. See the official documents.

According to the official document guides:
execute the command:

composer global require laravel/installer

Then create a project:

laravel new blog

Or use:
Composer Create Project --prefer-dist-Laravel / Laravel Blog

Create a project;

Then, direct execution:

php artisan serve

Either start the service, accessed through the website: HTTP: // localhost: 8000 / to see a preview.

But not so simple, just start has been reported that 500, do not know what the problem is.
Later found .env.sample file, rename the .env.sample .env, and then use the command line to run php artisan key: generate command on it.
Re-run php artisan serve. The official may visit:

Guess you like

Origin www.cnblogs.com/pzscit/p/12077604.html