PHPackages                             stereoflo/users-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. stereoflo/users-admin

ActiveLibrary[Admin Panels](/categories/admin)

stereoflo/users-admin
=====================

Users Admin Panel

111PHP

Since Mar 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/StereoFlo/users-admin)[ Packagist](https://packagist.org/packages/stereoflo/users-admin)[ RSS](/packages/stereoflo-users-admin/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Admin Panel
===================

[](#laravel-admin-panel)

An admin panel for managing users, roles, permissions &amp; crud.

### Requirements

[](#requirements)

```
Laravel >=5.1
PHP >= 5.5.9

```

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

[](#installation)

For Laravel &gt;= 5.5 you need to follow these steps
----------------------------------------------------

[](#for-laravel--55-you-need-to-follow-these-steps)

1. Run

    ```
    composer require stereoflo/users-admin

    ```
2. Install the admin package.

    ```
    php artisan users-admin:install

    ```
3. Make sure your user model's has a `HasRoles` trait **app/User.php**.

    ```
    class User extends Authenticatable
    {
        use Notifiable, HasRoles;

        ...
    ```
4. You can generate CRUD easily through generator tool now.

For Laravel &lt; 5.5 you need to follow these steps
---------------------------------------------------

[](#for-laravel--55-you-need-to-follow-these-steps-1)

1. Run

    ```
    composer require stereoflo/users-admin

    ```
2. Add service provider to **config/app.php** file.

    ```
    'providers' => [
        ...

        Stereoflo\UsersAdmin\UsersAdminServiceProvider::class,
        Collective\Html\HtmlServiceProvider::class,
    ],
    ```
3. Add **Collective/Html** aliases to **config/app.php** file.

    ```
    'aliases' => [
        ...

        'Form' => Collective\Html\FormFacade::class,
        'HTML' => Collective\Html\HtmlFacade::class,
    ],
    ```
4. Run `composer dump-autoload`
5. Install the admin package.

    ```
    php artisan users-admin:install

    ```
6. Make sure your user model's has a `HasRoles` trait **app/User.php**.

    ```
    class User extends Authenticatable
    {
        use Notifiable, HasRoles;

        ...
    ```
7. You can generate CRUD easily through generator tool now.

Usage
-----

[](#usage)

1. Create some roles.
2. Create some permissions.
3. Give permission(s) to a role.
4. Create user(s) with role.
5. For checking authenticated user's role see below:

    ```
    // Add roles middleware in app/Http/Kernel.php
    protected $routeMiddleware = [
        ...
        'roles' => \App\Http\Middleware\CheckRole::class,
    ];
    ```

    ```
    // Check role anywhere
    if(Auth::check() && Auth::user()->hasRole('admin')) {
        // Do admin stuff here
    } else {
        // Do nothing
    }

    // Check role in route middleware
    Route::group(['namespace' => 'Admin', 'prefix' => 'admin', 'middleware' => ['auth', 'roles'], 'roles' => 'admin'], function () {
       Route::get('/', ['uses' => 'AdminController@index']);
    });
    ```
6. For checking permissions see below:

    ```
    if($user->can('permission-name')) {
        // Do something
    }
    ```

Learn more about ACL from [here](https://laravel.com/docs/5.3/authorization)

Screenshots
-----------

[](#screenshots)

[![roles](https://user-images.githubusercontent.com/1708683/27001704-766cba0c-4df2-11e7-8f7b-1fd10237a2b7.png)](https://user-images.githubusercontent.com/1708683/27001704-766cba0c-4df2-11e7-8f7b-1fd10237a2b7.png)

[![new role](https://user-images.githubusercontent.com/1708683/27001717-8630861c-4df2-11e7-9ba3-31971c03244f.png)](https://user-images.githubusercontent.com/1708683/27001717-8630861c-4df2-11e7-9ba3-31971c03244f.png)

[![permissions](https://user-images.githubusercontent.com/1708683/27001718-90dd3e0c-4df2-11e7-8b3b-4dfd5fcd5ba8.png)](https://user-images.githubusercontent.com/1708683/27001718-90dd3e0c-4df2-11e7-8b3b-4dfd5fcd5ba8.png)

[![give permission to a role](https://user-images.githubusercontent.com/1708683/27001721-9e48b080-4df2-11e7-89d1-2686a3cc67f9.png)](https://user-images.githubusercontent.com/1708683/27001721-9e48b080-4df2-11e7-89d1-2686a3cc67f9.png)

[![users](https://user-images.githubusercontent.com/1708683/27001726-b46e4212-4df2-11e7-8656-0f5d610a8929.png)](https://user-images.githubusercontent.com/1708683/27001726-b46e4212-4df2-11e7-8656-0f5d610a8929.png)

[![generator](https://user-images.githubusercontent.com/1708683/27001730-bee94b7e-4df2-11e7-8ca4-db9b26fed73f.png)](https://user-images.githubusercontent.com/1708683/27001730-bee94b7e-4df2-11e7-8ca4-db9b26fed73f.png)

Author
------

[](#author)

[Sohel Amin](http://www.sohelamin.com) 📧 [Hire Me](mailto:sohelamincse@gmail.com)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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/2e0e71b332659d017bb7b91bb2c83556d68494a3531f8d5478e4be53b6336efe?d=identicon)[StereoFlo](/maintainers/StereoFlo)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/stereoflo-users-admin/health.svg)

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

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

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