PHPackages                             helori/laravel-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. [Admin Panels](/categories/admin)
4. /
5. helori/laravel-admin

ActiveLibrary[Admin Panels](/categories/admin)

helori/laravel-admin
====================

This package allows you to create admin users (different than your application's users)

v1.3(5y ago)01.1k1MITPHPPHP &gt;=7.0.0

Since Mar 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/helori/laravel-admin)[ Packagist](https://packagist.org/packages/helori/laravel-admin)[ RSS](/packages/helori-laravel-admin/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (1)

laravel-admin
=============

[](#laravel-admin)

This package allows you to create admin users (different than your application's users). It uses a custom guard and comes with Laravel auth views : login, register, password reset... It is especially useful when building protected areas (e.g. control panels) without the need to re-build everything.

Installation and setup
----------------------

[](#installation-and-setup)

On a fresh Laravel (&gt;= v5.4) installation, install the package by running:

```
composer require helori/laravel-admin
```

Configure your application (Laravel version &lt; 5.5):

```
// config/app.php
'providers' => [
    ...
    Helori\LaravelAdmin\AdminServiceProvider::class,
];
```

Setup the guard, provider and password reset options to handle administrator authentication :

```
// config/auth.php
'guards' => [
    ...
    'admin' => [
        'driver' => 'session',
        'provider' => 'admins',
    ],
],
'providers' => [
    ...
    'admins' => [
        'driver' => 'eloquent',
        'model' => Helori\LaravelAdmin\Models\Admin::class,
    ]
],
'passwords' => [
    ...
    'admins' => [
        'provider' => 'admins',
        'table' => 'admins_resets',
        'expire' => 60,
    ],
],
```

Configure redirection if an auth exception is raised :

```
// app/Exceptions/Handler.php
use Illuminate\Auth\AuthenticationException;
...
protected function unauthenticated($request, AuthenticationException $exception)
{
    if ($request->expectsJson()) {
        return response()->json(['error' => 'Unauthenticated.'], 401);
    }

    $guard = array_get($exception->guards(), 0);
    if($guard === 'admin'){
        return redirect()->guest(route('admin-login'));
    }else{
        return redirect()->guest(route('login'));
    }
}
```

Configure redirection if an administrator is already authenticated :

```
// app/Middleware/RedirectIfAuthenticated.php
public function handle($request, Closure $next, $guard = null)
{
    if (Auth::guard($guard)->check()) {
        if($guard === 'admin'){
            return redirect()->route('admin-home');
        }else{
            return redirect('/');
        }
    }

    return $next($request);
}
```

Run the migrations:

```
php artisan migrate
```

Create the first administrator to be able to connect the first time:

```
php artisan tinker
$admin = new \Helori\LaravelAdmin\Models\Admin
$admin->name = 'John'
$admin->email = 'john@domain.com'
$admin->password = bcrypt('john_password')
$admin->save()
exit
```

Publish the laravel-admin default assets:

```
php artisan vendor:publish --tag=laravel-admin-assets
```

Install the package's font-end dependencies:

```
npm install jquery@3.* bootstrap@4.* --save-dev
```

Edit your laravel mix config file :

```
// webpack.mix.js
mix.sass(
    "./resources/assets/sass/admin.scss",
    "./public/css/admin.css"
).js(
    "./resources/assets/js/admin.js",
    "./public/js/admin.js", "."
);
```

Compile your assets :

```
npm run dev
```

Your admin auth should be available at:

```
http://your-domain.test/admin/login
```

Start creating protected views :

```
// routes/web.php
...
Route::group(['prefix' => 'admin', 'middleware' => 'auth:admin'], function ()
{
    Route::get('/', function(){
        return view('your-admin-home');
    });
    ...
});
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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 ~2 days

Total

2

Last Release

1930d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/09da58137025e7ef77e2724777686cd48dac57ab736d387a472e182f2d278d13?d=identicon)[Helori](/maintainers/Helori)

---

Top Contributors

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

---

Tags

laravel

### Embed Badge

![Health badge](/badges/helori-laravel-admin/health.svg)

```
[![Health](https://phpackages.com/badges/helori-laravel-admin/health.svg)](https://phpackages.com/packages/helori-laravel-admin)
```

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61114.7k26](/packages/slowlyo-owl-admin)[ibrahim-bedir/filament-dynamic-settings-page

272.0k1](/packages/ibrahim-bedir-filament-dynamic-settings-page)[lara-zeus/tartarus

simple multi tenants

112.6k](/packages/lara-zeus-tartarus)

PHPackages © 2026

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