mikelmi/mks-admin
Starter Admin Panel for Laravel projects
Build on AngularJS 1.5, Bootstrap 4
Requirements
- Laravel 5.4
Installation
- Install via composer
$ composer require mikelmi/mks-admin
- Add Mikelmi\MksAdmin\Providers\AdminServiceProvider::class to your providers config
- Publish assets and config
$ php artisan vendor:publish --provider="Mikelmi\MksAdmin\Providers\AdminServiceProvider"
- Edit config/admin.php
Configure User
For accessing the admin panel User should have 'admin.access' ability (you can define it by Gate::define()).
See https://laravel.com/docs/master/authorization#gates for details
[Optional] Define SuperAdmin ability
Implement AdminableUserInterface by your User model
// app/User.php
<?php
//...
use Mikelmi\MksAdmin\Contracts\AdminableUserInterface;
class User extends Authenticatable implements AdminableUserInterface {
//...
public function isSuperAdmin(): bool
{
//TODO: return true if user is SuperAdmin
return false;
}
}
[Optional] Enable Password Reset for admins
- Enable it in
config/admin.phpfile:
<?php
return [
//...
'reset_enable' => true,
- Add
Mikelmi\MksAdmin\Traits\AdminableUserTrait to your User model
Configure Menu
By default the menu items are built by \Mikelmi\MksAdmin\Services\SimpleMenu class and configured in the config/admin.php. E.g:
'menu_manager' => \Mikelmi\MksAdmin\Services\SimpleMenu::class,
'menu' => [
['title'=>'Home', 'url'=>'#/home', 'hash'=>'home', 'icon'=>'home'],
['title'=>'Users', 'url'=>'#/users', 'hash'=>'users', 'icon'=>'user'],
],
But you can change the default menu manager class by your own which should implements Mikelmi\MksAdmin\Contracts\MenuManagerContract
Controllers
- Define admin routes in routes/admin.php
Related Packages
weblabormx/laravel-front
Front is a administration panel for Laravel. It allows you to create CRUD easily...
14,893
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v3.1.9 | >=7.0 | 5.4.* | MIT | |
| v3.1.8 | >=7.0 | 5.4.* | MIT | |
| v3.1.7 | >=7.0 | 5.4.* | MIT | |
| v3.1.6 | >=7.0 | 5.4.* | MIT | |
| v3.1.5 | >=7.0 | 5.4.* | MIT | |
| v3.1.4 | >=7.0 | 5.4.* | MIT | |
| v3.1.3 | >=7.0 | 5.4.* | MIT | |
| v3.1.2 | >=7.0 | 5.4.* | MIT | |
| v3.1.1 | >=7.0 | 5.4.* | MIT | |
| v3.1.0 | >=7.0 | 5.4.* | MIT | |
| v3.0.9 | >=7.0 | 5.4.* | MIT | |
| v3.0.8 | >=7.0 | 5.4.* | MIT | |
| v3.0.7 | >=7.0 | 5.4.* | MIT | |
| v3.0.6 | >=7.0 | 5.4.* | MIT | |
| v3.0.5 | >=7.0 | 5.4.* | MIT | |
| v3.0.4 | >=7.0 | 5.4.* | MIT | |
| v3.0.3 | >=7.0 | 5.4.* | MIT | |
| v3.0.2 | >=7.0 | 5.4.* | MIT | |
| v3.0.1 | >=7.0 | 5.4.* | MIT | |
| v3.0 | >=7.0 | 5.4.* | MIT | |
| v2.0.1 | >=7.0 | 5.4.* | MIT | |
| v2.0 | >=7.0 | 5.4.* | MIT | |
| 1.0 | >=7.0 | 5.3.* | MIT |