当前位置:网站首页>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 .
边栏推荐
- Wasserstein slim gain with clipping penalty (wsgain-cp) introduction and code implementation -- missing data filling based on generating countermeasure network
- Use dosbox to run the assembly super detailed step "suggestions collection"
- D constructor problem
- 能解决80%故障的排查思路
- Pms132b single chip microcomputer TWS digital tube Bluetooth charging chamber program development
- Customize a loading instruction
- No such file or directory: ‘/tmp/tmpxxx/tmpxxx. py‘
- Three methods of MySQL backup
- aloam 代码阅读与总结
- Yingguang single chip microcomputer development specification pmc131 with AD chip to detect battery voltage single chip microcomputer sop8/14
猜你喜欢

ORA-19838 -- 恢复控制文件到备库

Explain kubernetes network model in detail

Easyai notes - machine learning

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

The price is only 40 yuan. Pico development board of raspberry pie is added with WiFi module, and it is out of stock as soon as it comes into the market

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

1288_FreeRTOS中vTaskResume()接口以及中断安全版本接口实现分析

自定义一个loading指令

能解决80%故障的排查思路

Hbuilderx runs to the mobile phone or simulator and prompts that the device is not found
随机推荐
What should we pay attention to in the development process of Yingguang single chip microcomputer?
Aptos教程-参与官方激励测试网(AIT2 激励测试网)
微信小程序视频分享平台系统毕业设计毕设(4)开题报告
一个优秀程序员可抵五个普通程序员!
MySQL --- 數據庫的基本操作
wait_for_gap -- 从主库归档备库恢复归档
android之循环定时器实现,实现定Android时缓存清理
Detailed explanation of map set
Tower safety monitoring system unattended inclination vibration monitoring system
开发一个禁止删除namespace的控制器
1288_ Implementation analysis of vtask resume() interface and interrupt Security version interface in FreeRTOS
Wechat applet video sharing platform system graduation design (2) applet function
【Zuul】com. netflix. zuul. exception. ZuulException: Hystrix Readed time out
微信核酸检测预约小程序系统毕业设计毕设(2)小程序功能
A4988与42步进电机
怎么可以省去大量的switch语句,省去switch语句
使用NPOI导出Excel文件
Experience Alibaba cloud character recognition OCR
Typescript
Yingguang single chip microcomputer (MCU popular science)