rhinoda/admin_module

Role management and creating CRUD controllers

Installs: 47

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 4

Forks: 1

Open Issues: 0

Language:CSS

Type:laravel

v1.0.3 2018-08-02 05:56 UTC

This package is not auto-updated.

Last update: 2024-05-05 09:46:03 UTC


README

68747470733a2f2f73766773686172652e636f6d2f692f3764342e737667

GitHub issues GitHub forks GitHub stars GitHub license Laravel Support

Rhinoda Admin Module

Role management,creating CRUD controllers and file manager for Laravel framework

Contents

Installation

1.Change CACHE_DRIVER=array in env.

2.Remove user table from migration

3.Install package

composer require rhinoda/admin_module

4.Open your config/app.php and add the following to the providers array:

Zizaco\Entrust\EntrustServiceProvider::class,
Rhinoda\Admin\AdminServiceProvider::class,

5.In the same config/app.php and add the following to the aliases array:

'Entrust'   => Zizaco\Entrust\EntrustFacade::class,

6.Run the command below to publish Rhinoda And Entrust files :

php artisan vendor:publish

7.Open your config/auth.php and add the following to it:

'providers' => [
    'users' => [
        'driver' => 'eloquent',
        'model' => App\Models\User::class,
        'table' => 'users',
    ],
],

8.Open your config/app.php and add the following to the providers array:

App\Providers\ModulesServiceProvider::class,

9.Open your config/entrust.php and change path to models for Role and Permission models

'role' => 'App\Models\Role',
'permission' => 'App\Models\Permission',

10.Laravel Auth

php artisan make:auth

11.Remove Auth Routes from web.php

12.Run migration

php artisan migrate

Configuration

Entrast

In this module already created all general models, which will be used.

For more information about Role-based Permission:

Link to package guide

Usage

First User

php artisan admin:install

Item creating

CRUD

After creation CRUD controller, immediately created:

  • Model in App\Models folder

  • Controller in App\Http\Controllers\Admin folder

  • Requests in App\Http\Requests folder

  • views in resource\views\admin\[crud_name] folder

Controller

After creation custom controller, immediately created:

  • Controller in App\Http\Controllers\Admin folder

  • views in resource\views\admin\[crud_name] folder

File management

Directory: public/admin,

You can upload and edit files.

Troubleshooting

License

Rhinoda Admin is free software distributed under the terms of the MIT license.

Contribution guidelines

Support follows PSR-1 and PSR-4 PHP coding standards, and semantic versioning.

Please report any issue you find in the issues page.

Pull requests are welcome.