当前位置:网站首页>Pit encountered during installation of laravel frame
Pit encountered during installation of laravel frame
2022-07-02 18:14:00 【North Gate Makino】
One 、 install composer, My side is virtual Linux System , So there are two installation methods :
1. yes composer The official method
2. yes curl install .
The place where the pit meets is curl Installed composer, After installation, you need to install laravel frame
composer create-project --prefer-dist laravel/laravel
But there was curl 60 Report errors , Here's the picture 
There are many solutions , Finally found a useful , Download the certificate , Then put the certificate in the specified folder .
----- Download certificate address :https://curl.se/docs/caextract.html After entering the website, click... At the top cacert.pem Download .
----- View the certificate location through the command and execute the following command ,
php -r "print_r(openssl_get_cert_locations());"
----- Where to get the local certificate , Here's the picture 
----- find phpini The contents of the file modification are shown in the following figure , Remember to restart after the modification php

If all goes well , Now you can install normally Laravel 了 , Of course, you may also encounter the following error reports 



The solution to the above error report is to replace composer Mirror source for ..... I hope you can succeed !
**
Two 、 Use composer Install well laravel After the project , Just install laravel-ide-helper Plug in , There are many pits here .
**
composer require barryvdh/laravel-ide-helper 2.6
The version of this plug-in should be the same as laravel The Framework version matches , Otherwise, it will report a mistake , That is to say, the implementation of php artisan ide Prompt when 
At this point, you need to go to the frame vendor Look under the directory to see if there is barryvdh, If not, do it again
composer require barryvdh/laravel-ide-helper 2.6
What I just downloaded here is 2.6 Version of , therefore , It should be consistent , It is suggested that composer.json Add the content in the red box
"barryvdh/laravel-ide-helper": "^2.6"

Execute now
php artisan ide
It's normal 
And then execute
php artisan ide-helper:gen
lavavel The content shown in the following figure will appear in the project , At this time, you can enjoy code completion happily .

If this article is useful to you , That would be great .
边栏推荐
- 2020互联网行业术语
- [games101] operation 4 B é zier curve
- wait_for_gap -- 从主库归档备库恢复归档
- Typescript
- Detailed explanation of map set
- Development and application case of pms134 scheme of Yingguang single chip microcomputer with original packaging
- PHP gets the number of days, hours, minutes and seconds between the two timestamps
- Intelligent hydropower meter energy consumption monitoring cloud platform
- My creation anniversary
- Enter a valid user name and password in the Microsoft LDAP configuration page, and enter a valid user name in the Microsoft LDAP configuration page
猜你喜欢

Viewing technological changes through Huawei Corps (VI): smart highway

自定义一个loading指令

微信核酸检测预约小程序系统毕业设计毕设(5)任务书

From a professional background, I can't get into a small company for interview

515. 在每个树行中找最大值

Remember to use ternary expressions when switching transformations

Editor Editor Extension add button and logo in scene view

win10 kms activator

【Golang | gRPC】使用openssl生成证书

Troubleshooting ideas that can solve 80% of faults
随机推荐
vimium映射鍵
719. 找出第 K 小的数对距离
Web chat tool
Microsoft LDAP 配置页中输入有效的用户名及密码,microsoft ldap 配置页中输入有效的用户名
Vimium mapping key
MySQL advanced - transaction and index
微信小程序视频分享平台系统毕业设计毕设(3)后台功能
RDK仿真实验
好评率计算
微信核酸检测预约小程序系统毕业设计毕设(2)小程序功能
怎么可以省去大量的switch语句,省去switch语句
【Zuul】com. netflix. zuul. exception. ZuulException: Hystrix Readed time out
Aloam code reading and summary
微信小程序视频分享平台系统毕业设计毕设(2)小程序功能
aloam 代码阅读与总结
Experience Alibaba cloud character recognition OCR
Wechat applet video sharing platform system graduation design completion (1) development outline
国金证券是国企吗?在国金证券开户资金安全吗?
Development of original Yingguang MCU chip pms152 sop8 encapsulated MCU
Wechat nucleic acid detection and appointment applet system graduation design (3) background function