当前位置:网站首页>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 .
边栏推荐
- vimium映射键
- Experience Alibaba cloud character recognition OCR
- Yingguang single chip microcomputer development specification pmc131 with AD chip to detect battery voltage single chip microcomputer sop8/14
- MySQL --- 数据库的基本操作
- 2020 Internet industry terminology
- D constructor problem
- Web聊天工具
- Embedded ~ introduction
- Use Zadig to build a continuous delivery platform from 0 to 1
- How to download wechat payment certificate (API certificate)
猜你喜欢

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

Wechat nucleic acid detection and appointment applet system graduation design (3) background function

微信小程序视频分享平台系统毕业设计毕设(8)毕业设计论文模板

自定义一个loading指令

微信小程序视频分享平台系统毕业设计毕设(2)小程序功能

Use Zadig to build a continuous delivery platform from 0 to 1

Two pieces of nature a day! Duan Fengfeng, an alumnus of the University of science and technology of China, was the third Chinese winner of the belby medal

Picking up the camera is the best artistic healing

Yingguang single chip microcomputer development specification pmc131 with AD chip to detect battery voltage single chip microcomputer sop8/14

Detailed explanation of map set
随机推荐
Redisson high performance redis distributed lock source code analysis
Renren potential field method
微信小程序视频分享平台系统毕业设计毕设(6)开题答辩PPT
Babbitt | metauniverse daily must read: can you buy a virtual anchor for 1000 yuan? Is this the live gospel of small businesses or "cutting leeks"
Wechat applet video sharing platform system graduation design completion (1) development outline
Editor Editor Extension add button and logo in scene view
em120.gige. h
微信核酸检测预约小程序系统毕业设计毕设(1)开发概要
Embedded ~ introduction
微信小程序视频分享平台系统毕业设计毕设(4)开题报告
Easyai notes - machine learning
RDK simulation experiment
C# 检测图片是否被旋转并修改到正真的旋转
Wechat applet video sharing platform system graduation design (2) applet function
Aloam code reading and summary
vi/vim 删除:一行, 一个字符, 单词, 每行第一个字符 命令
In Linux, MySQL sets the job task to start automatically
Ora-19838 -- restore control files to the standby database
人人工势场法
My creation anniversary