Reference
PHPStorm 配置 laravel 官方文档
配置 CLI Interpreter
File -> Setting -> 左边导航栏选择 PHP
点击 CLI Interpreter 右边的…按钮,弹出 CLI Interpreter 对话框。
点击加号 选择 php.exe 文件
初始化 composer
所有工作开始之前,我们必须确保PhpStorm里的Composer已经完成初始化和配置。先打开一个Laravel 项目,然后在project tool 窗口选择根节点、然后右键->Composer | Init composer 。 如果你的电脑里没有composer.phar,可以点击链接来下载。
Ref https://blog.csdn.net/diannet/article/details/47724465
INSTALL LARAVEL IDE HELPER
-
File -> Setting -> Tools -> Command Line Tool Support
点击 + 加号
弹出的对话框点 OK
PHP Interpreter: 选择现在的刚刚设置的php interpreter版本,例如 PHP 7.4
Path to composer.phar or composer 中选择 composer.pha