duo

6018 经验值

直接chmod -R 777 /usr/local,重装了遍php71,发现php71安装的问题

执行valet install 里面有个错误,不会了能指点下吗?https://laracasts.com/discuss/channels/servers/trouble-with-valet-install 这个看不大明白

执行valet install 里面有个错误,不会了
☁ ~ valet install
Password:
Stopping nginx....
Installing nginx configuration...
Installing nginx directory...
Updating PHP configuration...

Warning: file_get_contents(/usr/local/etc/php/7.1/php-fpm.d/www.conf): failed to open stream: No such file or directory in /Users/maxdata/.composer/vendor/laravel/valet/cli/Valet/Filesystem.php on line 112

Warning: file_put_contents(/usr/local/etc/php/7.1/php-fpm.d/www.conf): failed to open stream: No such file or directory in /Users/maxdata/.composer/vendor/laravel/valet/cli/Valet/Filesystem.php on line 125
Restarting php71...
Restarting dnsmasq...
Restarting nginx...

Valet installed successfully!

php7.1安装在/usr/local/Cellar/php71/7.1.8_20

$article->update(['content'=>"更新文章内容"]);
明白了用双引号

$article->update(['id'=>’2’]);
PHP error: Use of undefined constant ’2’ - assumed '’2’' on line 1
这个错误怎么解决啊?

第二步,source ~/.zsh/zsh-autosuggestions/autosuggestions.zsh
改为source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh