Laravel 5.1 app and home.blade.php missing
11,423
Solution 1
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.
However, you'll still be able to get it back with the Scafold Package :
1.Add Scafold to your composer.json
file in the require :
section :
require : {
"laravel/framework": "5.1.*",
"bestmomo/scafold": "dev-master"
}
or type from terminal :
composer require bestmomo/scafold dev-master
2.Update composer :
composer update
3.Add the service provider to your config/app.php :
Bestmomo\Scafold\ScafoldServiceProvider::class,
4.Publish the views and assets :
php artisan vendor:publish
Done!
Solution 2
Run php artisan make:auth
and it will automatically generate layoyts\app.blade.php
and home.blade.php
Related videos on Youtube
Author by
Myat Htut
Updated on September 16, 2022Comments
-
Myat Htut over 1 year
I created a new project via composer in Laravel 5.1.
I couldn't find the app.blade.php.andhome.blade.php
file, what am I doing wrong?-
lukasgeiter almost 9 years
home.blade.php
and other auth scaffolding stuff is not in 5.1 anymore. You have to add it manually. The app folder should exist though... -
warbioIt would be very useful if you could tell us what commands you used to create the project.
-
-
Micro over 8 yearsWhy did they remove it??
-
Mark over 8 years@MicroR I think the removed it because some preferred the installation to be more barebones with less clutter/bloat, similar to comparable frameworks.
-
Mark over 8 years@MicroR: I definitely think they at least should have added an officially supported package or parameter to include that old rather than just removing it altogether. I ended up making a 5.0 installation and copying the files to my 5.1 app while I am learning Laravel.
-
Reversed Engineer over 7 yearsThis is much simpler, and many web apps need authentication anyways, so it's no bloat. Thank you!!
-
chiccodoro about 7 years@Mark, seems like the actually have, see Sambhav's answer
-
Mark almost 7 years@chiccodoro Yup. I'm now working on a laravel 5.4 project and that is the method I use. They also have some nice documentation on setting it up
-
Ahmad.Net over 6 yearsIn laravel 5.5 I use this command and I got all needed files. But I face the [The page has expired due to inactivity.] many thanks.