无法打开 Laravel 项目

Can't open Laravel project

已安装 php7.2,作曲家,laravel 2.0.1,Ubuntu 16.0

每次创建新项目

 $ laravel new TestProj

出现了很多"reccomandations":

symfony/var-dumper suggests installing ext-intl (To show region name in time zone dump) symfony/routing suggests installing doctrine/annotations (For using the annotation loader) symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader) symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service) symfony/routing suggests installing symfony/expression-language (For using expression matching) symfony/routing suggests installing symfony/yaml (For using the YAML loader) symfony/event-dispatcher suggests installing symfony/dependency-injection () symfony/http-kernel suggests installing symfony/browser-kit () symfony/http-kernel suggests installing symfony/config ().......

但我读到没关系,

现在,当我尝试启动服务器时

TestProj$ php artiasn serve

启动正常:

Laravel development server started: <http://127.0.0.1:8000>

但是当我尝试在浏览器中输入这个地址时(在 firefox 和 chrome 上也是如此)页面显示 "woops, it's seems like something went wrong",并且在命令行中写着:

[Fri Feb  9 00:54:59 2018] 127.0.0.1:52176 [200]: /favicon.ico

试图在 index.php 中写这个:

<link rel="FaviconIcon" href="favicon.ico" type="image/x-icon">

问题可能是您的 APP_KEY 丢失了,解决方法是 运行 php artisan key:generate

您需要授予存储文件的写入权限

sudo chmod 777  storage/

您需要复制

blog4/.env.example

blog4/.env

之后你可以运行:

php artisan key:generate