2017 © Pedro Peláez
 

library badmin

an admin package for laravel 5.1

image

bostick/badmin

an admin package for laravel 5.1

  • Tuesday, November 24, 2015
  • by BillBostick
  • Repository
  • 2 Watchers
  • 1 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Badmin

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Badmin provides a simple admin interface for the authentication features that are built into Laravel 5.1, as well as the Laravel ACL package (https://github.com/kodeine/laravel-acl). The screens are based on Bootstrap and jQuery., (*2)

Table of Contents

Requirements and Dependencies

This package requires PHP 5.5.9 or greater. It has dependencies on the Illuminate/HTML and Kodeine/Laravel-ACL packages., (*3)

Installation

These instructions describe the installation of Badmin, Laravel-ACL, and the Illuminate/HTML package. If you already have either of the dependant packages installed, you may have already performed some of these steps., (*4)

Step 1

Use composer to require the package:, (*5)

$ composer require bostick/badmin:dev-master@dev

Step 2

Add the service provides for HTML, Laravel-Acl, and Badmin to config/app.php:, (*6)

```php 'providers' => [ ... Illuminate\Html\HtmlServiceProvider::class, Kodeine\Acl\AclServiceProvider::class, Bostick\Badmin\BadminServiceProvider::class, ..., (*7)


### Step 3 Add the aliases for HTML to config/app.php: ```php 'aliases' => [ ... 'Form' => Illuminate\Html\FormFacade::class, 'Html' => Illuminate\Html\HtmlFacade::class, ...

Step 4

Add the HasRole trait to your User model (app/User.php). Note this issue at https://github.com/kodeine/laravel-acl/issues/90. The following code works with the current release of Laravel-ACL., (*8)

  use Kodeine\Acl\Traits\HasRole;

  ...

  class User extends Model implements AuthenticatableContract,
                                      AuthorizableContract,
                                      CanResetPasswordContract

  {
    use Authenticatable, Authorizable, CanResetPassword, HasRole {
      HasRole::can insteadof Authorizable;
  }

Step 5

Use artisan to publish package features:, (*9)

  $ php artisan vendor:publish

Step 6

Use artisan to run the migration scripts:, (*10)

  $ php artisan migrate

Step 7

Add the following to your app/Http/Kernel.php, (*11)

    protected $routeMiddleware = [
        'acl' => \Kodeine\Acl\Middleware\HasPermission::class,
        ];

Use

Once it is installed, Badmin will provide views at the following routes:, (*12)

  login
  logout
  register
  password/email
  admin/user
  admin/permission
  admin/role
  admin/access

The Versions

24/11 2015

dev-master

9999999-dev

an admin package for laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bill Bostick

laravel admin