Laravel 5.1 应用程序和 home.blade.php 丢失
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30980906/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Laravel 5.1 app and home.blade.php missing
提问by Myat Htut
I created a new project via composer in Laravel 5.1.
I couldn't find the app.blade.php.and home.blade.php
file, what am I doing wrong?
我通过Laravel 5.1中的composer创建了一个新项目。
我找不到 app.blade.php.andhome.blade.php
文件,我做错了什么?
回答by Ennosuke Ajibana
You didn't do anything wrong.
The Auth Scaffolding was removed from Laravel 5.1. That includes the app.blade.php
and the home.blade.php
that you mentioned.
你没有做错任何事。Auth Scaffolding 已从 Laravel 5.1 中移除。这包括你提到的app.blade.php
和home.blade.php
。
However, you'll still be able to get it back with the Scafold Package:
但是,您仍然可以使用Scafold Package取回它:
1.Add Scafold to your composer.json
file in the require :
section :
1.将 Scafold 添加到您的composer.json
文件require :
部分:
require : {
"laravel/framework": "5.1.*",
"bestmomo/scafold": "dev-master"
}
or type from terminal :
或从终端输入:
composer require bestmomo/scafold dev-master
2.Update composer :
2.更新作曲家:
composer update
3.Add the service provider to your config/app.php :
3.将服务提供者添加到您的 config/app.php :
Bestmomo\Scafold\ScafoldServiceProvider::class,
4.Publish the views and assets :
4.发布观点和资产:
php artisan vendor:publish
Done!
完毕!
回答by Sambhav Pandey
Run php artisan make:auth
and it will automatically generate layoyts\app.blade.php
and home.blade.php
运行php artisan make:auth
,它会自动生成layoyts\app.blade.php
和home.blade.php
回答by Micro
If you want to use laravel 5.0 you can download it from their repo here:
如果你想使用 laravel 5.0,你可以从这里的 repo 下载它:
https://github.com/laravel/laravel/tree/5.0
https://github.com/laravel/laravel/tree/5.0
And here is a video showing how to get started:
这是一个视频,展示了如何开始:
https://scotch.io/tutorials/login-with-the-built-in-laravel-5-scaffolding
https://scotch.io/tutorials/login-with-the-built-in-laravel-5-scaffolding
Basically just
基本上只是
1) run composer install
to get the dependencies then
1)运行composer install
以获取依赖项然后
2) run artisan key:generate
to generate your random key for .env
file.
2)运行artisan key:generate
以生成.env
文件的随机密钥。
3) set your database info in .env
file
3)在.env
文件中设置您的数据库信息
4) run artisan migrate
to set up the database
4)运行artisan migrate
建立数据库
and you should be set
你应该被设置