Skip to content

About this project

Laravel React Secure Starter Kit is a starting point for building Laravel + React applications. It includes account change notifications, tools to review signed-in devices, and records of security-related actions.

It helps users notice unfamiliar changes or logins, and gives operators tools to investigate what happened and respond.

When you need to… The kit provides…
Know when a password or email address changes Email notices about the change
Deal with an unfamiliar signed-in device A way to review and revoke login sessions
Investigate what happened to an account Records of important changes and rejected authentication attempts, available to authorized operators
Send updates or learn about failures In-app notifications, email delivery, and operational alerts

For example, users can end a login session in a browser they no longer use or receive a notice after a password change. Operators can also revoke a specific user’s sessions.

This project is based on the main branch of react-starter-kit-i18n, a multilingual starter kit.

Its original foundation is Laravel’s official react-starter-kit. The react-starter-kit-i18n project adds multilingual support to the official kit, and this project adds account protection and operational features on top of that.

It retains the Laravel + React foundation and English and Japanese translation support. The security additions have been separated into their own starter kit so they can be used together.

Login, password resets, two-factor authentication, and passkeys already exist in the parent project. This edition adds change notices, session controls, and security event records around those capabilities.

Keep these three points in mind. The getting started chapter will explain the setup steps.

  • PHP 8.4 or later is required. This raises the parent project’s PHP requirement.
  • Session revocation requires SESSION_DRIVER=database. The application can use other drivers, but this kit’s revocation feature is unavailable with them.
  • Email notices need a configured mail transport. The initial configuration writes email content to the log.

If you are setting up the kit for the first time, start with Getting started. To explore the additions, choose a topic below.

See each chapter for detailed configuration and constraints. Also see Development and customization, Operations, and the test inventory.