Skip to content

Package creates plain Roles and serves for CRUD operations of Roles in administrative panel

Notifications You must be signed in to change notification settings

vadiasov/roles-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel RolesAdmin

This package creates plain roles for users and CRUD pages for them in administrative panel.

It includes a ServiceProvider to register the package and attach it to the output. It includes migrations to create DB roles. You can publish seeds and use it to create demo roles. It includes views of the CRUD pages (blade sections).

Installation

Add the package to root composer.json:

"require": {
        ...
        "vadiasov/roles-admin": "dev-master",
  }

Then run:

composer update

Register package in config/app.php

'providers' => [
        /*
         * Package Service Providers...
         */
        Vadiasov\RolesAdmin\RolesServiceProvider::class,

Create model:

php artisan make:model Role

Publish migrations and seeds. Run:

php artisan vendor:publish

and enter appropriate number of this package (see terminal output after last command).

Migrate:

php artisan migrate

Seed if you need demo data:

php artisan db:seed class=RolesSeeder

Routes

The routes are in the package:

admin/roles
admin/roles/create
admin/roles/{id}/edit
admin/roles/{id}/delete

About

Package creates plain Roles and serves for CRUD operations of Roles in administrative panel

Resources

Stars

Watchers

Forks

Packages

No packages published