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

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

Related

Try to use a command to Install login page?

I downloaded a project from Github and followed the instruction to open it for login in. I have to use php artisan make:auth but there is an error, how can you help me?
That command is no longer available(Depends on the version ), use this:
composer require laravel/ui
php artisan ui vue --auth
php artisan migrate
source :
Laravel

I want to create login in laravel, and have problem in cmd with: php artisan make:auth

When I run this command: php artisan make:auth
I get an error:
command "make:auth" is not defined.
I have a problem in command with php artisan make:auth. How can I create a login in laravel
In Laravel 6 auth command has been removed and authentication scaffolding has been moved as separate package named laravel/ui
Here you can read about Laravel 6 and laravel/ui and also here you can read about laravel/ui in laravel documentation
Laravel 6.0 has removed this command:php artisan make:auth
Update for Laravel 6: The command to implement Auth is as follows:
composer require laravel/ui
php artisan ui vue --auth
This command will install a layout view, registration and login views, as well as routes for all authentication end-points. A HomeController will also be generated
NOTE: If your login page only shows plain HTML. And CSS is not loading properly then run this two command:
npm install
npm run dev

Voyager - Admin Panel Package for Laravel

I am having problem on laravel - Voyager admin panel package installation command. When I put this command php artisan voyager:install a notification show on terminal:
[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the "storage" namespace.
After this php artisan servecommand I found my admin panel but its show a problem, following screen are showing after submitting log in by default password.
GitHub repository for this Package/Doc
Try using this instead of php artisan voyager:install:
composer.phar dump-autoload
php artisan db:seed
This may help you.
Dont forget to add
TCG\Voyager\VoyagerServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,
into your config/app.php file in the 'providers' => [ array
You are probably installing this on a version of Laravel 5.2 or earlier. Laravel 5.2 does not have the artisan command to create a symlink. Can you check your Laravel version :)
Solution also posted here: https://devdojo.com/forums/discussion/php/voyager-voyager-e-for-laravel-admin-panel-package-for-laravel
Thanks.
If you instaled Voyager on laravel 5.3, you need to add
TCG\Voyager\VoyagerServiceProvider::class,
to your config/app.php at your PROVIDER and it will work.

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

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

Categories