Laravel 5.1 app and home.blade.php missing - 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?

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!

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

Related

How to update Laravel Installer for version 8.x?

I used this command for installing Laravel Installer:
composer global require "laravel/installer"
For creating a project I use :
laravel new name --jet
on 8th September laravel 8.x was released, and I'm looking for installing it using the laravel command but I couldn't do it. Instead, a new laravel project was created with Laravel 7.x. I need some help.
Note: I can create a project with Laravel 8.x with this command, but I need to update my required Laravel and make a project with laravel 8.x and jetstream by using the laravel command:
The Error looks like this.....
It will work
composer create-project --prefer-dist laravel/laravel laravel
composer require laravel/jetstream
php artisan jetstream:install inertia
/home/example_username/.config/composer go to this folder
and edit composer.json
and put
{
"require": {
"laravel/installer": "^4.0"
}
}
then run composer global update
Make sure to update your php version to >7.3 and latest Laravel Installer 4.0.3
composer global require laravel/installer
This might be helpful: https://laravel-news.com/reminder-update-your-laravel-installer
To see what version you have installed run laravel -V in your console
and if it’s less than v4.0 you’ll need to update, and we have a
tutorial on doing it, but typically it’s just a matter of running:
composer global require "laravel/installer:^4.0"

Why does the command php artisan make:auth not work?

Does someone know why this command gets aborted when I enter it?
D:\sites_laravel\vinyl_shop>php artisan make:auth
The [auth/login.blade.php] view already exists. Do you want to replace it? (yes/no) [no]:
Aborted.
error message
Delete everything inside resources/views/auth folder.
Delete app.blade.php from layouts folder.
Then Try it again.
100% working.
In laravel 6 the auth command updated, it good for you to update your laravel.
and for authentication you need first do this:
composer require laravel/ui --dev
and then run this:
php artisan ui vue --auth
If your laravel version is less than 6, just delete the files related to authentication from resources/views/auth, then it should work for you.
i think there is a probleme with login file in views folder ,if you can remove it, remove it and also
verify if your composer is installed you can install it by
composer install
and also your System auth by
composer require laravel/ui "^2.0" --dev
this commande it works for laravel 7
but look for the new version in [new version][1]
and if you in a new version of laravel 7+ just use :
php artisan ui vue --auth

Laravel Composer Update Getting Error

After Successfully install laravel 5 When I try to update composer or install any laravel packages via composer getting this error
Artisan file is missing. Download the artisan file. If not work download bootstrap folder & replace into your bootstrap folder.
See: How do I download a particular file from GitHub?

Auth resources are missing in laravel

I want to make use of auth system which comes with the laravel package but the problem is when I make new laravel package using composer i.e composer create-project laravel/laravel project name --prefer-dist
it do not install those auth resources which includes (i.e. auth folder inside resources > views) and also I can't find the Services Folder inside app directory.
All other things are working fine except this authentication system.
What can be the possible problems? Please give me solution
I am working with MAMP.
Taylor Otwell has made it opt-in for Laravel 5.1
You need to run following command after installation
php artisan scaffold:auth
UPDATE
I think this has been answered here
You could also run the command php artisan make:auth in the root directory of you laravel project. I had the same problem and it worked for me.
The command php artisan scaffold:auth didn't work for me i don't know why.
it issued the error:
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "auth" is not defined.
Did you mean this?
make:auth
in Laravel 5.2 you just have to run this command "php artisan make:auth" and the auth folder will be created
Since laravel 6.* version make:auth is no longer supported, use ui:auth instead.
For deploying ui pack run
composer require laravel/ui --dev
then update composer.json :
composer update -W
and do the:
php artisan ui:auth
You need execute
php artisan make:auth
now if your style css and js are missing
You need load file .css and .js
1) execute in your project
npm install
2) then execute
npm run dev => now in folder /public now exist folder js and css
3) reload page

laravel-authentication-acl package not loading css and js (assets)

i use laravel framework in my project
i downloaded the package laravel-authentication-acl
1-Add to composer.json require field the following lines:
"require": {
...
"jacopo/laravel-authentication-acl": "1.1.*"
},
2- run composer update command.
3- opend the file app/config/app.php
and added to the 'providers' option the following line:
'Jacopo\Authentication\AuthenticationServiceProvider',
4-Then run
this command to publish the configuration files:
php artisan authentication:prepare
5- run the command:
php artisan authentication:install.
6- copy
D:\xamp\htdocs\halls\vendor\jacopo\laravel-authentication-acl\public
into D:\xamp\htdocs\halls\public\packages\jacopo
7- run this command
to publish the configuration files:
php artisan authentication:prepare
8- run the command:
php artisan authentication:install
when i examin the source of the files in browser
for example
http://halls.me/packages/jacopo/laravel-authentication-acl/css/style.css
and click of it it shows Whoops, looks like something went wrong.
that means that the browser not read assets files any help ?
Well, if you copied:
D:\xamp\htdocs\halls\vendor\jacopo\laravel-authentication-acl\public into D:\xamp\htdocs\halls\public\packages\jacopo
You should access your files not using:
http://halls.me/packages/jacopo/laravel-authentication-acl/css/style.css
but
http://halls.me/packages/jacopo/css/style.css

Categories