Skip to content

AdnanTech

Programming tutorials

Menu
  • Python
  • PHP
    • Laravel
    • WordPress
  • Javascript
    • React JS
    • Node.js
    • Vue JS
  • Databases
    • MySQL
    • MongoDB
  • Mobile apps
    • Android
    • iOS
  • Tutorials
    • Ticketing system
    • Chat app
  • Blog
  • Projects
  • API
    • Social network API
  • Services
    • Hash Generator
    • World Clock
    • Word Counter
    • Currency Converter
    • Financial Ledger
    • Time Difference
    • Stopwatch & Timer
    • Google Maps
  • SAAS
    • Job Entry
Admin login

Authentication boilerplate in Laravel and React JS

by adnanafzal565Posted onApril 20, 2024April 20, 2024

In this article, I will share with you, a boilerplate for authentication created in Laravel 10 and React JS. User authentication is a module used in almost every project. Whether you are creating a blog website, or an E-commerce or a video streaming website, you need to have a page where user can create an account.

User authentication is also very crucial because it plays an important part in email marketing. You can get a gaint list of emails of your users, then you can use it to send emails for your new projects or updates etc.

This boilerplate will help you speed-up the development process by providing all the features you need for user authentication. So you don’t have to re-develop the user authentication module for each new project.

Screenshots

Laravel authentication admin login
Laravel authentication admin login
Forget password
Forget password
Admin panel
Register
Login
Settings
Admin chat
User chat
Edit user
User management

Features:

  1. User registration.
  2. Login with JWT (Json Web Token).
  3. Logout.
  4. Forgot password.
  5. User profile.
  6. Edit name and profile picture.
  7. Change password.
  8. Admin panel.
  9. Dynamic SMTP settings from admin panel.
  10. Add, edit, delete users from admin panel.
  11. Admin can enable or disable email verification feature.

These are all the features added so far in the authentication boilerplate developed in Laravel and React JS. I will keep adding more features. You can also give your own suggestions for new features or improvements.

Tech stack:

  1. PHP +8.2
  2. Laravel +10
  3. React +18
  4. Bootstrap +5

How to setup:

  1. Goto file “config/database.php” and set your database credentials.
'mysql' => [
    ...

    'host' => '127.0.0.1',
    'port' => '3306',
    'database' => 'laravel_authentication',
    'username' => 'root',
    'password' => '',

    ...
],

Create a database named “laravel_authentication” in your phpMyAdmin.

  1. At root folder, run the following commands:

Note: You can write any name, email or password of your choice for super admin while running 5th command.

1) COMPOSER_MEMORY_LIMIT=-1 composer update
2) php artisan key:generate
3) php artisan storage:link
4) php artisan migrate
5) name="Admin" email="admin@adnan-tech.com" password="admin" php artisan db:seed --class=DatabaseSeeder
6) php artisan serve

You can access the project from: http://localhost:8000

Download

If you face any issue in this, kindly let me know: support@adnan-tech.com

Conclusion

In this article, you have been introduced to source code for user authentication that will be used in almost website. You can download the source code for free and use it as many time as you want.

Post Views: 338
Posted in Laravel, React JSTagged authentication, boilerplate, laravel, login authentication, react, react dom, react js

Published by adnanafzal565

View all posts by adnanafzal565

Post navigation

Prev Share value between components – React JS
Next Securely deploy Laravel website on live server

Recent Posts

  • SAAS in React + Laravel – Job Entry
  • Show selected images from input type file – React
  • Add dynamic rows in React
  • Soft Delete 🗑 – Node.js, MongoDB
  • 2 ways to loop through a number in React

Recent Comments

  1. canada pharmaceuticals online generic on PDF view in browser and export as file – PHP
  2. System on (no title)
  3. adnanafzal565 on (no title)
  4. adnanafzal565 on (no title)
  5. System on (no title)

Archives

  • May 2025
  • March 2025
  • February 2025
  • January 2025
  • November 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • November 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020

Categories

  • Android
  • Complete Projects
  • CSS
  • FFmpeg
  • Git
  • htaccess
  • HTML
  • iOS
  • Javascript
  • Laravel
  • Leap Motion Controller
  • MEVN
  • MongoDB
  • MySQL
  • Node.js
  • PHP
  • Python
  • React JS
  • Swift
  • Tips & Tricks
  • Uncategorized
  • Vue JS
  • WordPress
AdnanTech © All rights reserved. 2013 - 2025
Looking for a web developer ?