Part 2 : Ecommerce Using LiveWire in Laravel 8 - Authentication using JetStream | Shahul Hameed

 

    This part shows how to create authentication of web application using composer Jetstream.

Step 1 :

    Install composer - JetStream

    CMD: composer require laravel/Jetstream 


Step 2: Install livewire for jetstream composer

    CMD: php artisan jetstream:install livewire


    Note: Install this cmd itself once the above process completed


Step 3: Migration process 

    Setup auth DB for admin and user identification in the User table define as utype will be ADM for admin and USR for customer and users.



Step 4: Migrate table to SQL Database

    CMD: php artisan migrate


Step 5: Run the project

    CMD:php artisan serve

Step 6: Check the Authentication part to route correspondent user or admin login credential.


Step 7: Setup middleware 

    CMD: php artisan make:middleware AuthAdmin


    Note: Start Setup below code in correspondent directory in package.



  Note: End Setup below code in correspondent directory in package.

Step 8:  Setup authentication session part
    


Step 9: Create component livewire for Admin and User 





Step 10: Set directory to Admin and User dashboard and Logout page.

    Note: Form logout route created below there.


Step 11: Route web.php



Comments

Popular posts from this blog

Using Burp Suite - Brute Force payloads using XSS Validator(Extension) | Shahul Hameed

Janus Vulnerability Exploitation

SQL Basics | Shahul Hameed