1 Create Laravel Project
2 run 'composer require laravel/ui'
3 run 'php artisan ui:auth'
4 run 'php artisan ui bootstrap'
4 run 'npm install && npm run dev'
6 run 'npm run developmant'
7 run 'php artisan migrate'
8 run 'php artisan make:model Admin -mc'

never insert admin details by front end always use dbseeder
9 run 'php artisan make:factory Admin' and go to admin factory and change details like this
===================================
return [
		//
	]

	to :

 return [
            'name' => 'Admin',
            'email' => 'admin@gmail.com',
            'email_verified_at' => now(),
            'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
            'remember_token' => Str::random(10),
        ];
=========================================

10 change admin migration file according user migration

copy from user migration
================
		  $table->id();
          $table->string('name');
          $table->string('email')->unique();
          $table->timestamp('email_verified_at')->nullable();
          $table->string('password');
          $table->rememberToken();
          $table->timestamps();
================
          and past it admin migration
          =================================================
11 create seeder in dbseeder file to admin record like this

	\App\Models\Admin::factory(1)->create();

12 run 'php artisan db:seed'

13 create Admin guard in config/auth.php like this


    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],
        'admin' => [
            'driver' => 'session',
            'provider' => 'admins',
        ],
    ],

      'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\Models\User::class,
        ],
        'admins' => [
            'driver' => 'eloquent',
            'model' => App\Models\Admin::class,
        ],

        // 'users' => [
        //     'driver' => 'database',
        //     'table' => 'users',
        // ],
    ],

    'passwords' => [
        'users' => [
            'provider' => 'users',
            'table' => 'password_resets',
            'expire' => 60,
            'throttle' => 60,
        ],
        'admins' => [
            'provider' => 'admins',
            'table' => 'password_resets',
            'expire' => 60,
            'throttle' => 60,
        ],
    ],
    ===========================================
    14 create AdminAuthenticate in middleware using Authenticate.php file and change return route('admin.login');
    make admin folder in view and create login.blade.php and register AdminAuthenticate in kernel.php
    -----------
    'admin.auth' => \App\Http\Middleware\AdminAuthenticate::class,
    ------------
and make AdminRedirectIfAuthenticated file in middleware and register 
---------------------------------------------------------------------------
 'admin.guest' => \App\Http\Middleware\AdminRedirectIfAuthenticated::class,
----------------------------------------------------------------------------

15 make admin route file in routes folder to admin

and make route

Route::group(['prefix'=>'admin'], function(){
    Route::group(['middleware'=>'admin.guest'], function(){
       login get and post route here ====
    });

    Route::group(['middleware'=>'admin.auth'], function(){
      all admin route here 
    });
});

now admin route file register in provider 
----------------------------------------
// Route for admin 
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/admin.php'));
and then 

past it in AdminAuthenticate

 protected function authenticate($request, array $guards)
    {
        if($this->auth->guard('admin')->check())
        {
            return $this->auth->shouldUse('admin');
        }
           $this->unauthenticated($request,['admin']);
    }
-------------------

now Admin.php model make authenticatable
after that make function in AdminController.php login, post login and other  

https://www.youtube.com/watch?v=HU_DAga-MYY&t=4658s&ab_channel=PerfectWebSolutions