CodeBriefly
Tech Magazine

How to Use Make Auth in Laravel 6

1 2,143

Get real time updates directly on you device, subscribe now.

In this article, we will discuss “how to use make auth in Laravel 6”. Officially Laravel 6 is available now, but some of the changes here, as expected. Because you are reading this article, So I assume you are still not familiar with the Laravel 6. Note that, It’s an LTS version of Laravel.

If you are new in Laravel then you can start with the following articles.

How to install Laravel 5 with Xampp using Composer

Laravel CSRF Protection

Setup Virtual Host in Windows with Xampp Server

PHP Artisan “make:auth”

In Laravel 6, the artisan command “make:auth” is not available in the list of artisan command. When we try to execute this command in terminal then the error shown as per the screenshot.

How to use make auth in Laravel 6

Laravel 6 introduces a new package “laravel/ui”. You can use the following composer command to install this package.

make_auth_error_laravel_6-1

After installing this package, the new “ui” command visible in the list of artisan command. You use the “ui” command to create the auth scaffolding. Also, you have to install the npm dependencies for the compiling of scaffolding.

make_auth_error_laravel_6

After installing the npm packages, now time to compile the file. You have to run the “npm run dev” command. Authentication scaffolding is ready for use.

Note that, other steps running the migration, setup database are still the same. You can check our Laravel tutorials for more details.

Conclusion

In this article, we are discussing “how to use make auth in Laravel 6”. Please feel free to add the comment, if any query. You can also submit your feedback.

 

If you like our content, please consider buying us a coffee.
Thank you for your support!
Buy Me a Coffee

Get real time updates directly on you device, subscribe now.

1 Comment
  1. keithg says

    thank you for share your knowledge

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More