Laravel Authentication

Are you looking to make auth in laravel then I will help you to make authentication using the laravel UI package in laravel? I will explain to you how to create login and registration using auth in laravel.

Laravelprovides a septate composer package for creating auth scaffold in laravel application. Whenever you require to create auth in laravel then you must have to install the laravel/UI package in laravel.

Using laravel/UI you can create a simple view with auth as same you did before you do. But you have to use Vue js or react js with auth view in laravel 6. But they do not provide as default you have to follow few steps to do auth.

You have to follow a few steps to make auth in your laravel application.

First, you need to install the laravel/UI package as like bellow:

composer require laravel/ui
php artisan ui --help


Description:Swap the front-end scaffolding for the applicationUsage:ui [options] [--]Arguments:type                   The preset type (bootstrap, vue, react)Options:--auth             Install authentication UI scaffolding--option[=OPTION]  Pass an option to the preset command (multiple values allowed)-h, --help             Display this help message-q, --quiet            Do not output any message-V, --version          Display this application version--ansi             Force ANSI output--no-ansi          Disable ANSI output-n, --no-interaction   Do not ask any interactive question--env[=ENV]        The environment the command should run under-v|vv|vvv, --verbose   Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Using Vue: (Cmd)

php artisan ui vue --auth

Using React: (Cmd)

php artisan ui react --auth

Using NPM: (Cmd)

npm install
npm run dev

For Bootstrap

php artisan ui bootstrap --auth



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store