为了账号安全,请及时绑定邮箱和手机立即绑定

为什么用composer安装完后会报这个错?

为什么用composer安装完后会报这个错?

PHP
潇湘沐 2019-03-16 16:49:11
根据官网提供的教程,在文件夹中输入命令composer create-project laravel/laravel --prefer-dist之后创建了一个laravel项目(结构如下图) 本地使用wamp server 配置的站点,打开后报了这个错误,求指教这是什么意思? 附: autoload.php: index.php: <?php /** * Laravel - A PHP Framework For Web Artisans * * @package Laravel * @author Taylor Otwell <taylor@laravel.com> */ define('LARAVEL_START', microtime(true)); /* |-------------------------------------------------------------------------- | Register The Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loader for | our application. We just need to utilize it! We'll simply require it | into the script here so that we don't have to worry about manual | loading any of our classes later on. It feels great to relax. | */ require __DIR__.'/../vendor/autoload.php'; /* |-------------------------------------------------------------------------- | Turn On The Lights |-------------------------------------------------------------------------- | | We need to illuminate PHP development, so let us turn on the lights. | This bootstraps the framework and gets it ready for use, then it | will load up this application so that we can run it and send | the responses back to the browser and delight our users. | */ $app = require_once __DIR__.'/../bootstrap/app.php'; /* |-------------------------------------------------------------------------- | Run The Application |-------------------------------------------------------------------------- | | Once we have the application, we can handle the incoming request | through the kernel, and send the associated response back to | the client's browser allowing them to enjoy the creative | and wonderful application we have prepared for them. | */ $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); $response = $kernel->handle( $request = Illuminate\Http\Request::capture() ); $response->send(); $kernel->terminate($request, $response);
查看完整描述

2 回答

?
largeQ

TA贡献2039条经验 获得超7个赞

return app('cache')->get($arguments[0], $arguments[1] ?? null)

这种语法需要php7

查看完整回答
反对 回复 2019-03-18
?
鸿蒙传说

TA贡献1865条经验 获得超7个赞

PHP 版本太低

查看完整回答
反对 回复 2019-03-18
  • 2 回答
  • 0 关注
  • 786 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信