Laravel 5.1应用程序和home.blade.php丢失 [英] Laravel 5.1 app and home.blade.php missing
问题描述
我在 Laravel 5.1 中通过作曲器创建了一个新项目.
我找不到app.blade.php.and home.blade.php
文件,我在做什么错了?
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?
推荐答案
您没有做错任何事情.
Auth脚手架已从Laravel 5.1中删除.其中包括您提到的app.blade.php
和home.blade.php
.
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.
但是,您仍然可以使用 Scafold软件包来找回它:
However, you'll still be able to get it back with the Scafold Package :
1.将脚手架添加到require :
部分中的composer.json
文件中:
1.Add Scafold to your composer.json
file in the require :
section :
require : {
"laravel/framework": "5.1.*",
"bestmomo/scafold": "dev-master"
}
或从终端输入:
composer require bestmomo/scafold dev-master
2.Update作曲家:
2.Update composer :
composer update
3.将服务提供商添加到您的config/app.php中:
3.Add the service provider to your config/app.php :
Bestmomo\Scafold\ScafoldServiceProvider::class,
4.发布视图和资产:
4.Publish the views and assets :
php artisan vendor:publish
完成!
这篇关于Laravel 5.1应用程序和home.blade.php丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!