laravolt / epicentrum
Epic central user management for Laravel
Installs: 8 599
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 4
Open Issues: 2
Requires
- php: >=7.3
- bensampo/laravel-enum: ^1.19
- illuminate/support: ^6.0
- laravolt/avatar: ^3.0
- laravolt/platform: ~0.13
- laravolt/semantic-form: ^2.13
- laravolt/suitable: ^3.6
- laravolt/support: ^2.0
- dev-develop / 2.0.x-dev
- 1.2.0
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- dev-master / 1.0.x-dev
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.27
- 0.26
- 0.25
- 0.24
- 0.23
- 0.22
- 0.21
- 0.20
- 0.19
- 0.18
- 0.17
- 0.16
- 0.15
- 0.14
- 0.13
- 0.12
- 0.11
- 0.10
- 0.9
- 0.8
- 0.7
- 0.6
- 0.5
- 0.4
- 0.3
- 0.2
- 0.1
- dev-feature/acl-repo
- dev-dev
- dev-update-readme
This package is auto-updated.
Last update: 2020-09-07 15:38:43 UTC
README
Installation
composer require laravolt/epicentrum
Configuration
Publish configuration file using command:
php artisan vendor:publish --tag=migrations --provider='Laravolt\Epicentrum\ServiceProvider
And there will be file config/laravolt/epicentrum.php
and preconfigured config inside it:
<?php return [ // setting route 'route' => [ 'enable' => true, 'middleware' => ['web', 'auth'], 'prefix' => 'epicentrum', ], // base layout to extended 'view' => [ 'layout' => 'ui::layouts.app', ], // setting menu visibility to laravolt/ui 'menu' => [ 'enable' => true, ], // allow user to has multiple role 'role' => [ 'multiple' => true, 'editable' => true, ], // list repository that you can modify 'repository' => [ // modify crud of user management 'user' => \Laravolt\Epicentrum\Repositories\EloquentRepository::class, // set default time zone that used 'timezone' => \Laravolt\Support\Repositories\TimezoneRepository::class, // change the criteria on searching feature 'criteria' => [ \Prettus\Repository\Criteria\RequestCriteria::class, ], // specify column that can searchable 'searchable' => ['name', 'email', 'status'], ], 'requests' => [ // modify validation of store data crud 'account' => [ 'store' => \Laravolt\Epicentrum\Http\Requests\Account\Store::class, 'update' => \Laravolt\Epicentrum\Http\Requests\Account\Update::class, 'delete' => \Laravolt\Epicentrum\Http\Requests\Account\Delete::class, ], ], // change user status available 'user_available_status' => [ 'PENDING' => 'PENDING', 'ACTIVE' => 'ACTIVE', ], // specify the model of role 'models' => [ 'role' => \Laravolt\Acl\Models\Role::class, ], // Whether to auto load migrations or not. // If set to false, then you must publish the migration files first before running the migrate command 'migrations' => true, // modify table view on user list page 'table_view' => \Laravolt\Epicentrum\Table\UserTable::class ];
Custom View File
You can publish views file using:
php artisan vendor:publish --tag=views --provider='Laravolt\Epicentrum\ServiceProvider'
And then, you can modify the view located in resources/views/vendor/epicentrum/*
.
The structure of epicentrum view file :
|-- account
| |-- edit.blade.php
|-- emails
| |-- account_information.blade.php
|-- my
| |-- password
| |-- edit.blade.php
|-- password
| |-- edit.blade.php
|-- role
| |-- edit.blade.php
|-- roles
| |-- create.blade.php
| |-- edit.blade.php
| |-- index.blade.php
|-- create.blade.php
|-- edit.blade.php
|-- index.blade.php
FAQ
- How to override the controller ? Override the controller is not best practice. If you want to pass data into view, you need to use Laravel Blade Service Injection. If you need to change the redirect, you must override the view and make custom route and controller by yourself. And then extends that controller to Epicentrum Controller.