PHPackages                             adamibrahim/superauth - 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. adamibrahim/superauth

ActiveLibrary[Admin Panels](/categories/admin)

adamibrahim/superauth
=====================

Laravel 5.6 Authentication Package

v0.2.7(7y ago)21002MITPHPPHP ~5.6|~7.0

Since Feb 24Pushed 7y agoCompare

[ Source](https://github.com/adamibrahim/superauth)[ Packagist](https://packagist.org/packages/adamibrahim/superauth)[ Docs](https://github.com/adamibrahim/superauth)[ RSS](/packages/adamibrahim-superauth/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (18)Used By (0)

Laravel 5.6 Superauth
=====================

[](#laravel-56-superauth)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e47b5fd9742cd16674bc5afeaa5b2f8bbeaffeefff552eff13cdeb1468536d2b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f3a76656e646f722f3a7061636b6167655f6e616d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adamibrahim/superauth)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/cb11179311e640818ab161382ab46616c3056e3374c94f90fdc6d06a309cf73b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f3a76656e646f722f3a7061636b6167655f6e616d652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/:vendor/:package_name)[![Coverage Status](https://camo.githubusercontent.com/77bd9748066a4737af2be4a15b71865967905bfc6aa38aabed0996acb7fb2bbb/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f3a76656e646f722f3a7061636b6167655f6e616d652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/:vendor/:package_name/code-structure)[![Quality Score](https://camo.githubusercontent.com/5ea237d9c7d6af5499007b76e317965f8bdfa4596fd71c22cd7fe2cb818594cc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f3a76656e646f722f3a7061636b6167655f6e616d652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/:vendor/:package_name)[![Total Downloads](https://camo.githubusercontent.com/2e7d96ffc3c5f08e269c45f38de91ce489968312df30848d817105c5ada0d9cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f3a76656e646f722f3a7061636b6167655f6e616d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adamibrahim/superauth)

- Laravel 5.6 Authentication package with
- Multi user type with roles (superadmin, admin, editor, user and featured user)
- User redirect to proper page (profile / admin dashboard)
- Registered user email confirmation using trait (Traits\\AuthRedirect)
- User roles sync (include test views url /admin/test, /test/profile )
- Using Laravel Queue Jobs
- Customizable Markdown template for notifications (Confirm Email and Reset password)
- User soft delete (active/inactive)
- Auth roles editing method for testing at profile and dashboard
- All content, message and alerts are localized, languages files in two languages (English, Russian), to insert language switcher please visit my localization easy package [adamibrahim/localization](https://github.com/adamibrahim/localization)

Demo
----

[](#demo)

- Demo account
- Username :
- Password : 123456

You can see working [demo](http://admin.hostato.com)

Login / Profile / Dashboard Routes
----------------------------------

[](#login--profile--dashboard-routes)

```
- /login (user --not moderator-- login )
- /test/profile (user --not moderator-- profile )
- /admin/login (Moderator login)
- /admin/test (Moderator dashboard)
```

Install
-------

[](#install)

```
$ composer require adamibrahim/superauth
```

###### If you are installing at laravel 5.5 or higher then you may go directly to Publish other wise you will need to edit composer.json, register the Service Provider and the middleware

[](#if-you-are-installing-at-laravel-55-or-higher-then-you-may-go-directly-to-publish-other-wise-you-will-need-to-edit-composerjson-register-the-service-provider-and-the-middleware)

##### composer.json

[](#composerjson)

Add this code to your composer.json under the autoload at your main directory

```
"psr-4": {
            "Adam\\Superauth\\": "vendor/adamibrahim/superauth/src"
        }
```

##### Service Provider

[](#service-provider)

At file config/app.php register service provider under \* Package Service Providers...

```
Adam\Superauth\SuperauthServiceProvider::class,
```

##### Middleware

[](#middleware)

if you are using Laravel version lower than 5.5 then you need to register the moderators and Visitor middleware at your App\\Http\\Kernel.php

- At protected $routeMiddleware = \[ \] array add the below code

```
'moderators' => \Adam\Superauth\Middleware\Moderators::class,
'visitor' => \Adam\Superauth\Middleware\Visitor::class,
```

##### Publishing

[](#publishing)

###### This will overwrite your User.php model

[](#this-will-overwrite-your-userphp-model)

```
$ php artisan vendor:publish --tag=Superauth --force
```

##### Database Migrating

[](#database-migrating)

run the Artisan migration command

```
$ php artisan migrate
```

### Seeding

[](#seeding)

Run the Artisan Seeding command

```
$ php artisan db:seed --class=Adam\Superauth\database\seeds\RolesTableSeeder
```

### Artisan Seed Error

[](#artisan-seed-error)

If you receive Class not found Error:

###### ReflectionException : Class Adam\\Superauth\\database\\seeds\\RolesTableSeeder does not exist

[](#reflectionexception--class-adamsuperauthdatabaseseedsrolestableseeder-does-not-exist)

Then you may need to dump-autoload by running this command

```
$ composer dump-autoload
```

Then run the seeding command once again

```
$ php artisan db:seed --class=Adam\Superauth\database\seeds\RolesTableSeeder
```

##### Job Queues

[](#job-queues)

I'm Using Queues to send emails (speed up the app) however if you don't wish to use it you can change at your .env file

```
QUEUE_DRIVER=sync

```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email :author\_email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Hostato](http://wwww.hostato.com)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.2% 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 ~21 days

Recently: every ~83 days

Total

17

Last Release

2658d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f504cb40ae3721c41864e01cbc6742fef3dbed740e3f2672a003f6193d8dd6d?d=identicon)[adamibrahim](/maintainers/adamibrahim)

---

Top Contributors

[![adamibrahim](https://avatars.githubusercontent.com/u/21137009?v=4)](https://github.com/adamibrahim "adamibrahim (13 commits)")[![hostato](https://avatars.githubusercontent.com/u/34839078?v=4)](https://github.com/hostato "hostato (5 commits)")

---

Tags

packagerolesadminemail confirmationLaravel 5.6

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/adamibrahim-superauth/health.svg)

```
[![Health](https://phpackages.com/badges/adamibrahim-superauth/health.svg)](https://phpackages.com/packages/adamibrahim-superauth)
```

###  Alternatives

[binshops/laravel-blog

Simple blog package (with admin panel) for Laravel. Includes all views, controllers, routes and can add a blog to any existing Laravel app. Fully customisable blog (view, urls, and many other options). Includes image uploads and a pretty admin interface to manage your blog. Defaults to /blog but you can change it to anything.

48447.0k](/packages/binshops-laravel-blog)[slowlyo/owl-admin

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

61214.2k26](/packages/slowlyo-owl-admin)[sebastienheyd/boilerplate

Laravel Boilerplate based on AdminLTE 3 with blade components, user management, roles, permissions, logs viewer, ...

28618.2k3](/packages/sebastienheyd-boilerplate)

PHPackages © 2026

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