(1) Locate php.ini
php --ini
(2) Edit php.ini
vi /usr/local/etc/php/7.4/php.ini
(3) Reload php via Homebrew
brew services restart php@7.4
确认配置:
#php -r "echo ini_get('memory_limit').PHP_EOL;"
#-1
- 如何通过laravel create project
composer global require laravel/installer
此时check ~/.composer/vendor/bin, 会有看到laravel已经安装
加入配置:
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
网友评论