PHPackages                             agustra/adminlte-auth-package - 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. agustra/adminlte-auth-package

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

agustra/adminlte-auth-package
=============================

Authentication package for AdminLTE v4 with Laravel integration

01Blade

Since Sep 4Pushed 8mo agoCompare

[ Source](https://github.com/agustra/adminlte-auth-package)[ Packagist](https://packagist.org/packages/agustra/adminlte-auth-package)[ RSS](/packages/agustra-adminlte-auth-package/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AdminLTE Authentication Package
===============================

[](#adminlte-authentication-package)

Authentication system for AdminLTE v4 with Laravel integration.

Features
--------

[](#features)

- ✅ Login/Logout with AdminLTE v4 styling
- ✅ User Registration (configurable)
- ✅ Forgot Password &amp; Reset
- ✅ User Profile Management
- ✅ Role &amp; Permission (Spatie Permission)
- ✅ Remember Me functionality
- ✅ Responsive AdminLTE v4 design
- ✅ CSRF Protection
- ✅ Session Management

📦 Installation
--------------

[](#-installation)

### Quick Install (Recommended)

[](#quick-install-recommended)

```
# Install both UI and Auth packages
composer require agustra/adminlte-v4-package agustra/adminlte-auth-package

# Publish AdminLTE assets
php artisan adminlte:publish-assets

# Install authentication system
php artisan adminlte:install-auth

# Run migrations
php artisan migrate
```

### Add Auth to Existing AdminLTE UI

[](#add-auth-to-existing-adminlte-ui)

If you already have `agustra/adminlte-v4-package`:

```
# Install authentication package
composer require agustra/adminlte-auth-package

# Install authentication system
php artisan adminlte:install-auth

# Run migrations
php artisan migrate
```

⚙️ Konfigurasi (Opsional)
-------------------------

[](#️-konfigurasi-opsional)

```
php artisan vendor:publish --tag=adminlte-auth-config
```

Usage
-----

[](#usage)

### Available Routes

[](#available-routes)

- `/login` - Login page
- `/register` - Registration page (if enabled)
- `/forgot-password` - Password reset request
- `/reset-password/{token}` - Password reset form
- `/profile` - User profile management
- `/logout` - Logout (POST)
- `/dashboard` - Protected dashboard (requires auth)

### Configuration

[](#configuration)

Edit `config/adminlte-auth.php`:

```
return [
    'enable_registration' => true,
    'enable_password_reset' => true,
    'enable_remember_me' => true,

    'redirects' => [
        'after_login' => '/dashboard',
        'after_logout' => '/login',
    ],
];
```

### Protecting Routes

[](#protecting-routes)

```
Route::middleware('auth')->group(function () {
    Route::get('/dashboard', [DashboardController::class, 'index']);
});
```

### User Model

[](#user-model)

The package provides an extended User model with:

- Spatie Permission integration
- Standard Laravel authentication
- Profile management

```
use AgusUsk\AdminLteAuth\Models\User;

$user = User::find(1);
$user->assignRole('admin');
$user->givePermissionTo('edit posts');
```

Requirements
------------

[](#requirements)

- PHP ^8.2
- Laravel ^12.0
- agustra/adminlte-v4-package ^1.0
- spatie/laravel-permission ^6.0

License
-------

[](#license)

MIT License

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance43

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2502ffe64dbe6a9ce77ebc5a0ee74bc374e55188bbb2f44325dd87a502d4facc?d=identicon)[agustra](/maintainers/agustra)

---

Top Contributors

[![agustra](https://avatars.githubusercontent.com/u/82966472?v=4)](https://github.com/agustra "agustra (5 commits)")

### Embed Badge

![Health badge](/badges/agustra-adminlte-auth-package/health.svg)

```
[![Health](https://phpackages.com/badges/agustra-adminlte-auth-package/health.svg)](https://phpackages.com/packages/agustra-adminlte-auth-package)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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