2017 © Pedro PelĆ”ez
 

library auth

Basic authentication with CRUD for users,roles and permissions.

image

hazicms/auth

Basic authentication with CRUD for users,roles and permissions.

  • Wednesday, May 27, 2015
  • by aitiba
  • Repository
  • 0 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

  • All user with role 'admin', has all permissions.
  • index action: none permission.appear only our resources. all if in 'admin' role.
  • create action: need to be 'create.MODEL' permission.
  • edit action: need to be 'edit.MODEL' permission and be creator of this resource.
  • delete action: need to be 'delete.MODEL' permission and be creator of this resource.

Steps to Get Started

  1. Add this package to your composer.json:, (*1)

    "require": {
        "hazicms/auth": "dev-master"
    }
  2. Run composer update, (*2)

    composer update
  3. Add the ServiceProviders to the providers array in config/app.php.
    , (*3)

    'HaziCms\Auth\AuthServiceProvider'
  4. Publish config files for generators, modules and images:, (*4)

    php artisan vendor:publish --provider="HaziCms\Generator\Generator\GeneratorServiceProvider"
  5. Add those lines to app\Http\Kernel.php file:, (*5)

    protected $routeMiddleware = [
        'hazicms.basic' => 'HaziCms\Http\Middleware\AuthBasicMiddleware',
    ];
  6. Add middleware to controller's __construct() method:, (*6)

    $this->middleware('hazicms.basic');
  7. You are ready! :-), (*7)

Credits

This module is created by Aitor IbaƱez., (*8)

Bugs & Forks are welcomed :), (*9)

The Versions

27/05 2015

dev-master

9999999-dev https://github.com/hazicms/auth

Basic authentication with CRUD for users,roles and permissions.

  Sources   Download

GPL-3.0

The Requires

 

laravel auth crud cms