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

Share:
11,423

Related videos on Youtube

Myat Htut
Author by

Myat Htut

Updated on September 16, 2022

Comments

  • Myat Htut
    Myat Htut over 1 year

    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?

    • lukasgeiter
      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...
    • warbio
      warbio
      It would be very useful if you could tell us what commands you used to create the project.
  • Micro
    Micro over 8 years
    Why did they remove it??
  • Mark
    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
    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
    Reversed Engineer over 7 years
    This is much simpler, and many web apps need authentication anyways, so it's no bloat. Thank you!!
  • chiccodoro
    chiccodoro about 7 years
    @Mark, seems like the actually have, see Sambhav's answer
  • Mark
    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
    Ahmad.Net over 6 years
    In 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.