Hello Devs,
In this tutorial, we are going to learn how to make authentication in laravel 7.
Follow this step by step guide given below:
Install laravel/ui package
composer require laravel/ui
Description:
Swap the front-end scaffolding for the application
Usage:
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 Bootstrap:
php artisan ui bootstrap --auth
Using Vue:
php artisan ui vue --auth
Using React:
php artisan ui react --auth
Install NPM:
npm install
Run NPM:
npm run dev
I hope this example helps you.