PHPackages                             sakib-1996/auth-admin - 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. [Templating &amp; Views](/categories/templating)
4. /
5. sakib-1996/auth-admin

ActiveLibrary[Templating &amp; Views](/categories/templating)

sakib-1996/auth-admin
=====================

A self-contained Laravel authentication and admin dashboard package with login, registration, and a Tailwind-powered UI.

v1.0.0(1mo ago)01MITPHP ^8.2

Since Jul 6Compare

[ Source](https://github.com/sakib-1996/auth-admin)[ Packagist](https://packagist.org/packages/sakib-1996/auth-admin)[ Docs](https://github.com/sakib-1996/auth-admin)[ RSS](/packages/sakib-1996-auth-admin/feed)WikiDiscussions Synced 1w ago

READMEChangelogDependencies (13)Versions (2)Used By (0)

Auth Admin for Laravel
======================

[](#auth-admin-for-laravel)

A self-contained Laravel package that provides authentication (login, register, logout) and a Tailwind CSS admin dashboard UI.

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

[](#requirements)

- PHP 8.2+
- Laravel 11, 12, or 13
- Node.js 18+ and npm (required to build frontend assets)
- A `users` table and User model in your Laravel application

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

[](#installation)

Install via Composer:

```
composer require sakib-1996/auth-admin
```

Build and publish frontend assets:

```
php artisan auth-admin:install
```

This command runs `npm install`, `npm run build` inside the package, and copies compiled assets to `public/vendor/auth-admin`.

### Optional: publish config

[](#optional-publish-config)

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

### Optional: publish views for customization

[](#optional-publish-views-for-customization)

```
php artisan vendor:publish --tag=auth-admin-views
```

Published views are placed in `resources/views/vendor/auth-admin`.

Usage
-----

[](#usage)

After installation, the following routes are available (default prefix `auth-admin`):

MethodURINameGET`/auth-admin/login``auth-admin.login`POST`/auth-admin/login`—GET`/auth-admin/register``auth-admin.register`POST`/auth-admin/register`—POST`/auth-admin/logout``auth-admin.logout`GET`/auth-admin``auth-admin.dashboard`Visit `/auth-admin/login` to sign in.

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

[](#configuration)

Configuration file: `config/auth-admin.php` (optional, publish first)

OptionDefaultDescription`route_prefix``auth-admin`URL prefix for all package routes`middleware``['web']`Middleware stack applied to package routes`guard``web`Authentication guard`user_model``null`User model class (falls back to `auth.providers.users.model`)`users_table``null`Users table name (falls back to model table)`redirect_after_login``auth-admin.dashboard`Route name after login`redirect_after_logout``auth-admin.login`Route name after logout### Using your existing User model

[](#using-your-existing-user-model)

By default, the package uses your application's User model from `config/auth.php`. No extra setup is required if you already have a standard Laravel `users` table with `name`, `email`, and `password` columns.

Ensure your User model hashes passwords, for example:

```
protected function casts(): array
{
    return [
        'password' => 'hashed',
    ];
}
```

Blade components
----------------

[](#blade-components)

ComponentDescription``Guest layout for login/register``Admin dashboard layout``Reusable form input with validation errors``Sidebar navigation``Top navigation barScreenshots
-----------

[](#screenshots)

Troubleshooting
---------------

[](#troubleshooting)

### Assets not loading

[](#assets-not-loading)

Run:

```
php artisan auth-admin:install
```

Ensure `public/vendor/auth-admin/app.css` and `app.js` exist.

### Route \[login\] not defined

[](#route-login-not-defined)

This package uses `auth-admin.login`, not Laravel's default `login` route. Protected package routes use `auth-admin.auth` middleware which redirects to the correct login route automatically.

### Registration fails

[](#registration-fails)

Verify your `users` table exists and your User model has `name`, `email`, and `password` in `$fillable` (or uses `#[Fillable]`).

### npm build fails

[](#npm-build-fails)

Ensure Node.js 18+ is installed and run the install command from your Laravel project root.

Upgrade guide
-------------

[](#upgrade-guide)

### 1.0.0

[](#100)

Initial stable release. Requires running `php artisan auth-admin:install` after install or upgrade.

Development
-----------

[](#development)

```
composer install
composer test
composer format
composer analyse
```

License
-------

[](#license)

MIT © [Abdullah Mohammad Sakib](https://github.com/sakib-1996). See [LICENSE](LICENSE).

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance90

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

49d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f41e3b6090e53eaed35e82a9f0c40fceb8c44906b6a58be32fca704744edf4e?d=identicon)[sakib-199 6](/maintainers/sakib-199%206)

---

Tags

laravelauthAuthenticationbladetailwinddashboardadmin

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sakib-1996-auth-admin/health.svg)

```
[![Health](https://phpackages.com/badges/sakib-1996-auth-admin/health.svg)](https://phpackages.com/packages/sakib-1996-auth-admin)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9922.4M147](/packages/roots-acorn)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k31.8M163](/packages/laravel-cashier)[moonshine/moonshine

Laravel administration panel

1.3k268.2k89](/packages/moonshine-moonshine)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M333](/packages/laravel-ai)

PHPackages © 2026

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