Laravel 9 Auth Scaffolding UI without npm package

By Guest | Mar 13, 2022 | Laravel
Share : Whatsapp

Laravel 9 Auth Scaffolding UI without npm package.

In this post, we will see about how to install auth in laravel 9 for complete login and registration system.

Step 1: Create a laravel 9 application via composer.

composer create-project laravel/laravel laravelproject

Step 2: Setup Database Configuration in .env file


Step 3: Install Laravel UI Package using the following commad.

composer require laravel/ui

Step 4: Generate Auth Scaffolding using the following command.

php artisan ui:auth

Step 5: migrate the table into database using the following command.

php artisan migrate

Step 6: lets start or serve the application with the following command.

php artisan serve

Now, we are successfully setup with the Auth Scaffolding.

Note: Your login, register, password reset, etc files will not designed, so to make it better and response please add bootstrap CDN links as shown below:

Bootstrap 5 CSS - CDN Link:

<link href="" rel="stylesheet">

Bootstrap 5 JS - CDN Link

<script src=""></script>

Step 7: Add these above CDN links in app.blade.php in the following path: resources/views/layouts/app.blade.php

<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>{{ config('', 'Laravel') }}</title>

    <!-- Scripts -->
    <script src="{{ asset('js/app.js') }}" defer></script>

    <!-- Fonts -->
    <link rel="dns-prefetch" href="//">
    <link href="" rel="stylesheet">

    <!-- Styles -->
    <link href="{{ asset('css/app.css') }}" rel="stylesheet">

    <link href="" rel="stylesheet">

    <div id="app">
        <main class="py-4">

    <script src=""></script>

Thank you.