Download the PHP package leo76/laravel-react-auth without Composer
On this page you can find all versions of the php package leo76/laravel-react-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download leo76/laravel-react-auth
More information about leo76/laravel-react-auth
Files in leo76/laravel-react-auth
Package laravel-react-auth
Short Description A Laravel package providing a full React SPA authentication system with login, register, and dashboard.
License MIT
Homepage https://github.com/your-vendor/laravel-react-auth
Informations about the package laravel-react-auth
Laravel React Auth
A Laravel package that drops in a complete React + Inertia.js authentication system in minutes — login, register, and a protected dashboard, all ready to customise.
Features
| Login with email, password & remember-me | |
| Register with validation & password confirmation | |
| Protected dashboard page | |
| Logout with session invalidation | |
One-command install: php artisan react-auth:install |
|
| Tailwind CSS + React 18 + Inertia.js | |
| Fully publishable views, config & migrations | |
| Toggle registration on/off via config | |
| Full PHPUnit feature test suite included |
📋 Requirements
| Dependency | Version |
|---|---|
| PHP | ^8.1 |
| Laravel | ^10.0 or ^11.0 |
| Node.js | ^18 |
| inertiajs/inertia-laravel | ^1.0 |
Installation
1 — Install via Composer
2 — Run the install command
This publishes the config, React pages, and migrations into your project.
3 — Run migrations
4 — Install JS dependencies and build
5 — Configure Inertia middleware
Laravel 11 — bootstrap/app.php :
Laravel 10 — app/Http/Kernel.php :
Set the root Blade view in config/inertia.php :
Available Routes
| Method | URL | Route name | Access |
|---|---|---|---|
GET |
/auth/login |
react-auth.login |
Guest |
POST |
/auth/login |
react-auth.login.post |
Guest |
GET |
/auth/register |
react-auth.register |
Guest |
POST |
/auth/register |
react-auth.register.post |
Guest |
GET |
/auth/dashboard |
react-auth.dashboard |
Auth |
POST |
/auth/logout |
react-auth.logout |
Auth |
Visit /auth/login in your browser to get started.
Configuration
Publish the config file:
config/react-auth.php :
Customising the React pages
Files are copied to :
Edit freely — the package will never overwrite published files.
Publish individually
Testing
The test suite covers login, register, logout, dashboard access, validation, and the registration toggle.
Package Structure
Changelog
See CHANGELOG.md for recent changes.
🤝 Contributing
Pull requests are welcome! For major changes, please open an issue first.
- Fork the repository
- Create your branch:
git checkout -b feature/my-feature - Commit:
git commit -m 'feat: add my feature' - Push:
git push origin feature/my-feature - Open a Pull Request
📄 License
The MIT License (MIT). See LICENSE for more information.
Made with ❤️ for the Laravel community
All versions of laravel-react-auth with dependencies
illuminate/support Version ^10.0|^11.0
illuminate/routing Version ^10.0|^11.0
illuminate/auth Version ^10.0|^11.0
inertiajs/inertia-laravel Version ^1.0