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?
Run php artisan make:auth
and it will automatically generate layoyts\app.blade.php
and home.blade.php
If you want to use laravel 5.0 you can download it from their 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 .env
file.
3) set your database info in .env
file
4) run artisan migrate
to set up the database
and you should be set
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!