Home >PHP Framework >Laravel >phpstudy uses PHP+nginx to configure Laravel
1. Please note that \ in the root project path in the vhosts.conf file is replaced with /
For example, root "D:/laravelApp/test/public";
2. If there is no .env in the root directory of the file
1. Rename .env.example using the command copy to .env, enter the root directory and execute the code below
copy .env.exmaple .env
2. Use the command php artisan key :generate gets the password, automatically saves it to .env
3, reruns, OK.
If there is .env, proceed directly to the second step.
For more Laravel related technical articles, please visit the Laravel Tutorial column to learn!
The above is the detailed content of phpstudy uses PHP+nginx to configure Laravel. For more information, please follow other related articles on the PHP Chinese website!