PHPackages                             gwl12345/modern-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. gwl12345/modern-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

gwl12345/modern-auth
====================

A modern authentication package for Laravel 12 + Inertia 2.3

v1.0.5(6mo ago)04MITTypeScriptPHP ^8.2

Since Dec 17Pushed 6mo agoCompare

[ Source](https://github.com/gwl12345/modern-auth)[ Packagist](https://packagist.org/packages/gwl12345/modern-auth)[ RSS](/packages/gwl12345-modern-auth/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (5)Used By (0)

Modern Auth Package
===================

[](#modern-auth-package)

A modern authentication package for Laravel 12 + Inertia 2.3, featuring:

- **Tabbed Login**: Standard Form, Magic Link, and WebAuthn (Passkeys).
- **Profile Management**: Update Info, Two-Factor Authentication, Browser Sessions, and Passkeys.
- **Shadcn UI**: Pre-styled components using Shadcn UI.

Prerequisites
-------------

[](#prerequisites)

- Laravel 12.x
- Inertia.js 2.x (React)
- Shadcn UI (installed in host app)

Installation
------------

[](#installation)

### 1. Require Package

[](#1-require-package)

If installing locally (development):

Add the repository to your application's `composer.json`:

```
"repositories": [
    {
        "type": "path",
        "url": "../modern-auth"
    }
],
```

Then run:

```
composer require gwl12345/modern-auth
```

### 2. Install Resources

[](#2-install-resources)

Publish the frontend files and migrations:

```
php artisan modern-auth:install
```

### 3. Install Dependencies

[](#3-install-dependencies)

Install the required NPM packages:

```
npm install @laragear/webpass dayjs @radix-ui/react-tabs react-icons
npm install class-variance-authority clsx tailwind-merge lucide-react sonner --save
```

### 4. Run Migrations

[](#4-run-migrations)

```
php artisan migrate
```

### 5. Build Assets

[](#5-build-assets)

```
npm run build
```

Configuration
-------------

[](#configuration)

### Service Provider

[](#service-provider)

The package automatically registers its service provider.

### Fortify

[](#fortify)

Ensure `TwoFactorAuthentication` is enabled in `config/fortify.php` if you wish to use the 2FA features.

Usage
-----

[](#usage)

- **Login**: The package overrides the standard login view. Visit `/login`.
- **Profile**: Access the profile settings at `/user/settings/profile`.
- **Passkeys**: Manage passkeys at `/user/settings/passkeys`.
- **2FA**: Setup Two-Factor Authentication at `/user/settings/two-factor-authentication`.

Frontend Integration
--------------------

[](#frontend-integration)

The package assumes your application has a `layouts/app-layout` and `layouts/settings/layout` (or you may need to adjust the imports in the published pages). All published pages are placed in `resources/js/Pages/Auth` and `resources/js/Pages/Profile`.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance66

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

198d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/73217127?v=4)[gwl12345](/maintainers/gwl12345)[@gwl12345](https://github.com/gwl12345)

---

Top Contributors

[![gwl12345](https://avatars.githubusercontent.com/u/73217127?v=4)](https://github.com/gwl12345 "gwl12345 (9 commits)")

### Embed Badge

![Health badge](/badges/gwl12345-modern-auth/health.svg)

```
[![Health](https://phpackages.com/badges/gwl12345-modern-auth/health.svg)](https://phpackages.com/packages/gwl12345-modern-auth)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725172.4k14](/packages/tallstackui-tallstackui)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
