Skip to content

mpdenisov/laravel_admin_module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Rhinoda Admin Module. Role management and creating CRUD controllers

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •