2017 © Pedro Peláez
 

library superauth

Laravel 5.6 Authentication Package

image

adamibrahim/superauth

Laravel 5.6 Authentication Package

  • Monday, March 19, 2018
  • by adamibrahim
  • Repository
  • 0 Watchers
  • 2 Stars
  • 38 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 17 Versions
  • 19 % Grown

The README.md

Laravel 5.6 Superauth

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

  • 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

Demo

  • Demo account
  • Username : admin@example.com
  • Password : 123456

You can see working demo, (*2)

Login / Profile / Dashboard Routes

``` bash - /login (user --not moderator-- login ) - /test/profile (user --not moderator-- profile ) - /admin/login (Moderator login) - /admin/test (Moderator dashboard), (*3)

## Install

``` bash
$ 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
composer.json

Add this code to your composer.json under the autoload at your main directory, (*4)

``` bash "psr-4": { "Adam\Superauth\": "vendor/adamibrahim/superauth/src" }, (*5)


##### Service Provider At file config/app.php register service provider under * Package Service Providers... ``` bash Adam\Superauth\SuperauthServiceProvider::class,
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, (*6)

``` bash 'moderators' => \Adam\Superauth\Middleware\Moderators::class, 'visitor' => \Adam\Superauth\Middleware\Visitor::class,, (*7)


##### Publishing ###### This will overwrite your User.php model ``` bash $ php artisan vendor:publish --tag=Superauth --force
Database Migrating

run the Artisan migration command, (*8)

``` bash $ php artisan migrate, (*9)


### Seeding Run the Artisan Seeding command ``` bash $ php artisan db:seed --class=Adam\Superauth\database\seeds\RolesTableSeeder

Artisan Seed Error

If you receive Class not found Error:, (*10)

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

Then you may need to dump-autoload by running this command ``` bash $ composer dump-autoload, (*11)


Then run the seeding command once again ``` bash $ php artisan db:seed --class=Adam\Superauth\database\seeds\RolesTableSeeder
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, (*12)

QUEUE_DRIVER=sync

Change log

Please see CHANGELOG for more information on what has changed recently., (*13)

Testing

bash $ composer test, (*14)

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*15)

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker., (*16)

Credits

License

The MIT License (MIT). Please see License File for more information., (*17)

The Versions

19/03 2018

dev-master

9999999-dev https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

19/03 2018

v0.2.6

0.2.6.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

19/03 2018

v0.2.5

0.2.5.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

18/03 2018

v0.2.4

0.2.4.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

07/03 2018

v0.2.3

0.2.3.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

06/03 2018

v0.2.2

0.2.2.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

06/03 2018

v0.2.1

0.2.1.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

06/03 2018

v0.1.9

0.1.9.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

04/03 2018

v0.1.8

0.1.8.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

04/03 2018

v0.1.6

0.1.6.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

04/03 2018

v0.1.7

0.1.7.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

04/03 2018

v0.1.5

0.1.5.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

04/03 2018

v0.1.4

0.1.4.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

04/03 2018

v0.1.3

0.1.3.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

04/03 2018

v0.1.2

0.1.2.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

25/02 2018

v0.1.1

0.1.1.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6

24/02 2018

v0.0.1

0.0.1.0 https://github.com/adamibrahim/superauth

Laravel 5.6 Authentication Package

  Sources   Download

MIT

The Requires

 

The Development Requires

roles admin package email confirmation laravel 5.6