2017 © Pedro Peláez
 

library knock

Provides role-based application permissions for Laravel applications using security tags

image

kawsuj/knock

Provides role-based application permissions for Laravel applications using security tags

  • Friday, December 8, 2017
  • by kawsuj
  • Repository
  • 1 Watchers
  • 1 Stars
  • 73 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

Knock: Roles and Permissions

Description

Provides a simple framework for Laravel 5.2 projects requiring user roles and permissions. It includes a user interface to manage your application's users and their permitted actions., (*1)

Installation

** Please note that these installation notes assume you have a clean installation of Laravel 5.2. Running the database migration will delete and recreate your users table if you already have one.
**, (*2)

Edit composer.json

Edit your application's composer.json file to add this package to the require section as follows:, (*3)

"require": {
    "kawsuj/knock": "dev-master"
}

Update Composer

cd to your application's root folder and update composer as follows:, (*4)

composer update

Edit config/app.php

Edit your application's config/app.php file:, (*5)

Add the following to the providers section:, (*6)

yajra\Datatables\DatatablesServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,
Knock\KnockServiceProvider::class,

Add the following to the aliases section:, (*7)

'Form'      => Collective\Html\FormFacade::class,
'Html'      => Collective\Html\HtmlFacade::class,
'Datatables'=> yajra\Datatables\Datatables::class,
'Knock' =>  Knock\Facades\Knock::class,

Edit config/auth.php

Edit your application's config/auth.php file:, (*8)

Change the providers/users/model array as follows:, (*9)

'model' => Knock\User::class,

Change the passwords/users/email array as follows:, (*10)

'email' => 'knock::auth.emails.password',

Publish

cd to your application's root folder to publish assets, migrations, seeds, and middleware as follows:, (*11)

php artisan vendor:publish --tag=knock

Edit app/Http/Kernel.php

Edit your application's app/Http/Kernel.php file and add the following to the $routeMiddleware array:, (*12)

'knock' => \App\Http\Middleware\RedirectIfNotKnockUser::class,

Database Migration

cd to your application's root folder and run the database migration, (*13)

php artisan migrate

Database Seeder

cd to your application's root folder and run the database seeder., (*14)

Note: You may need to run composer dump-autoload before running the seeder, (*15)

composer dump-autoload
php artisan db:seed --class=KnockDatabaseSeeder

The installation is now complete!, (*16)

Navigate to http://your-installation-url/knock, (*17)

Sign in

For access to Users And Permissions and, (*18)

username: developer@some-email-address.com, (*19)

password: secret, (*20)

For access to Users but NOT Permissions and, (*21)

username: user-admin@some-email-address.com, (*22)

password: secret, (*23)

When signed in, you will be directed to the Knock home page where there are further user instructions., (*24)

The Versions

08/12 2017

dev-master

9999999-dev

Provides role-based application permissions for Laravel applications using security tags

  Sources   Download

MIT

The Requires

 

by Kawsu Jawara

laravel user security role tag permission

04/07 2017

0.1.10

0.1.10.0

Provides role-based application permissions for Laravel applications using security tags

  Sources   Download

MIT

The Requires

 

by Kawsu Jawara

laravel user security role tag permission

04/07 2017

0.1.9

0.1.9.0

Provides role-based application permissions for Laravel applications using security tags

  Sources   Download

MIT

The Requires

 

by Kawsu Jawara

laravel user security role tag permission

23/06 2017

0.1.8

0.1.8.0

Provides role-based application permissions for Laravel applications using security tags

  Sources   Download

MIT

The Requires

 

by Kawsu Jawara

laravel user security role tag permission

22/06 2017

0.1.7

0.1.7.0

Provides role-based application permissions for Laravel applications using security tags

  Sources   Download

MIT

The Requires

 

by Kawsu Jawara

laravel user security role tag permission

22/06 2017

0.1.6

0.1.6.0

Provides role-based application permissions for Laravel applications using security tags

  Sources   Download

MIT

The Requires

 

by Kawsu Jawara

laravel user security role tag permission

22/06 2017

0.1.4

0.1.4.0

Provides role-based application permissions for Laravel applications using security tags

  Sources   Download

MIT

The Requires

 

by Kawsu Jawara

laravel user security role tag permission

22/06 2017

0.1.5

0.1.5.0

Provides role-based application permissions for Laravel applications using security tags

  Sources   Download

MIT

The Requires

 

by Kawsu Jawara

laravel user security role tag permission

09/12 2016

0.1.3

0.1.3.0

Provides role-based application permissions for Laravel applications using security tags

  Sources   Download

MIT

The Requires

 

by Kawsu Jawara

laravel user security role tag permission

31/08 2016

0.1.2

0.1.2.0

Provides role-based application permissions for Laravel applications using security tags

  Sources   Download

MIT

The Requires

 

by Kawsu Jawara

laravel user security role tag permission

01/06 2016

0.1.1

0.1.1.0

Provides role-based application permissions for Laravel applications using security tags

  Sources   Download

MIT

The Requires

 

by Kawsu Jawara

laravel user security role tag permission

16/05 2016

0.1.0

0.1.0.0

Provides role-based application permissions for Laravel applications using security tags

  Sources   Download

MIT

The Requires

 

by Kawsu Jawara

laravel user security role tag permission