Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for php artisan make:auth in laravel 6.0
Mohammed Samgan Khan
Mohammed Samgan Khan

Posted on • Originally published atcodebysamgan.com

     

php artisan make:auth in laravel 6.0

As you may have known by now that laravel 6.0 has been out. Though it’s expected to have a lot of changes in the major release but in 6.0 there are not that many changes.

It’s more like 5.9 in terms of changes.

But one major change introduced in laravel 6.0 is the removal of

php artisan make:auth

Command. As you may know, this was used to create the authentication scaffolding. Thought the concept is not removed but just the way to implement has been changed.

The New Way

Authentication support is now added with the help of a package now. you can read in detail about it inhere

Command to implement the Auth are as follows.

composer require laravel/uiphp artisan ui vue --auth

All the other stuff is the same as 5.8. Same Routes, Controller and all the stuff.

Hope this was helpful
feel free to share your thought in the comment section.

PS: the video also has some Hindi in it, but I am sure you will get the gist.

Top comments(18)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
gaballison profile image
Allison Fredrickson
Lifelong learner. Librarian by day, coder by night
  • Location
    Kentuckiana
  • Work
    Technology Services Manager at Jeffersonville Township Public Library
  • Joined

THANK YOU! I'm only just learning Laravel by following along with a YouTube video from FreeCodeCamp and couldn't figure out what I was doing wrong when I kept getting errors by using make:auth like it said to do.

CollapseExpand
 
msamgan profile image
Mohammed Samgan Khan
Love to code with a DRY KISS

I guess you were watching a 5.8 video and using 6.x.
happy to be of any help..

CollapseExpand
 
mnabeelp profile image
Mohammed Nabeel
Wannabe Web Developer working on HTML5, CSS3, JavaScript.I intend to learn trending frameworks to improve my profile.
  • Joined

Thank you. I was following the same video and had the same problem. Glad I got your video.

CollapseExpand
 
rezaodb profile image
Reza
  • Joined
• Edited on• Edited

My question is: why?
Make:auth was so intuitive...
Also: should you run "npm install && npm run dev" after?

CollapseExpand
 
haroldv22 profile image
Harold Villalobos
  • Joined

The purpose of extracting the make: auth package is that the developer can choose to develop on the front side either usingreact,vue,boostrapt and thus separate the views of this package, allowing him to decide and that it is no longer the framework who does it for the!!

CollapseExpand
 
msamgan profile image
Mohammed Samgan Khan
Love to code with a DRY KISS

regarding why, there must be some architectural reason. I don't know in particular.
and yes I also believe that make:auth was more appropriate but this a small part of something big.

and yes we have to run "npm install && npm run dev" after?

CollapseExpand
 
pascalzim profile image
Josh
  • Joined
• Edited on• Edited

Hi, after installing Node.js, and using the commands. When I type "php artisan ui vue --auth" I try to put "npm install" but it doesn't work. Only work's with react (if I use "php artisan ui react --atuh" it works). With vue says npm it's not being recognized (with npm run dev happens the same).

CollapseExpand
 
msamgan profile image
Mohammed Samgan Khan
Love to code with a DRY KISS

i think you changed default preset from vue js to react js. Laravel support both of them.
have a look at the documentation for more details.

CollapseExpand
 
pascalzim profile image
Josh
  • Joined

Yes, I solved the problem, thank you so much

CollapseExpand
 
suhailkc profile image
SUHAIL KC
Software Developer
  • Location
    Kerala, India
  • Joined

Helpful

CollapseExpand
 
msamgan profile image
Mohammed Samgan Khan
Love to code with a DRY KISS
• Edited on• Edited

Thank you ...

CollapseExpand
 
pitson3 profile image
Pitson Josiah MWakabila
Software developer with the passion for new development ecosystems and technologies, programmer at heart and Cyber dreamer.
  • Email
  • Location
    Lilongwe
  • Education
    Bacherlor in Edu.(Information and Communication Technology)
  • Work
    Software Developer(Intern) at techNix Malawi
  • Joined

Bravo!

CollapseExpand
 
msamgan profile image
Mohammed Samgan Khan
Love to code with a DRY KISS

thanks

CollapseExpand
 
stefanyvl2210 profile image
Stefany
  • Location
    Venezuela
  • Joined

What command can I use instead of "npm install && npm run dev", I'm using windows

CollapseExpand
 
msamgan profile image
Mohammed Samgan Khan
Love to code with a DRY KISS

you can run 'npm install' in windows too, all you have to do is install node js in the system.

you can download and install it fromhere

CollapseExpand
 
stefanyvl2210 profile image
Stefany
  • Location
    Venezuela
  • Joined

Thanks 😊

Thread Thread
 
msamgan profile image
Mohammed Samgan Khan
Love to code with a DRY KISS

happy to help

CollapseExpand
 
rassloff profile image
Rassloff
born in Europe
  • Location
    Berlin
  • Work
    Developer Systemadministrator
  • Joined

Thanks

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Love to code with a DRY KISS
  • Location
    USA
  • Education
    B. Tech in CS
  • Work
    Freelancer
  • Joined

More fromMohammed Samgan Khan

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp