我得到了一个错误:
Parse error: syntax error, unexpected 'function' (T_FUNCTION), expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) in D:\xampp\htdocs\praxxys\vendor\myclabs\deep-copy\src\DeepCopy\deep_copy.php on line 5当我尝试在xampp上运行我的应用程序时,当我使用技工服务时,它运行得很好。
这是我的composer.json:
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.4.*",
"laravel/tinker": "~1.0"
},发布于 2018-10-10 14:57:03
如果您想访问laravel项目而不运行手工服务,则只需更改几个设置,
打开位于httpd-vhosts.conf中的C:\xampp\apache\conf\extra\httpd-vhosts.conf
添加以下代码片段:
<VirtualHost laravel.test:80>
DocumentRoot "C:\xampp\htdocs\Laravel_Projects\firstProject\public"
ServerAdmin laravel.dev
<Directory "C:\xampp\htdocs\Laravel_Projects\firstProject">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>这使Apache服务器能够监听laravel.test,我们现在需要将laravel.test重定向到localhost。为此,请编辑主机文件。它位于C:\Windows\System32\drivers\etc内。
此外,请确保以管理员身份打开该文件。添加:
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 laravel.test保存文件并在需要时重新启动系统。然后,可以在浏览器中使用laravel.test测试应用程序。
https://stackoverflow.com/questions/52741754
复制相似问题