Laravel 5.1 and home.blade.php are missing

I created a new project through composer in Laravel 5.1.
I could not find the app.blade.php.and home.blade.php file, what am I doing wrong?

+6
php laravel
source share
3 answers

You have done nothing wrong. Auth Scaffolding has been removed from Laravel 5.1. This includes the app.blade.php and home.blade.php that you mentioned.

However, you can still return it using 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 enter from the terminal:

 composer require bestmomo/scafold dev-master 

2.Update composer:

 composer update 

3.Add the service provider to config / app.php:

 Bestmomo\Scafold\ScafoldServiceProvider::class, 

4.Remove submissions and assets:

 php artisan vendor:publish 

Done!

+39
source share

Run php artisan make:auth and it will automatically generate layoyts\app.blade.php and home.blade.php

+10
source share

If you want to use laravel 5.0, you can download it from your repo here:

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

Basically just

1) run composer install to get the dependencies, then

2) run artisan key:generate to generate your random key for the .env file.

3) enter information about your database in the .env file

4) run artisan migrate to configure the database

and you must be installed

0
source share

All Articles