| Package Data | |
|---|---|
| Maintainer Username: | cendekia |
| Maintainer Contact: | me@cendekiapp.com (Cendekia Pramana Putra) |
| Package Create Date: | 2016-12-13 |
| Package Last Update: | 2017-08-28 |
| Language: | JavaScript |
| License: | MIT |
| Last Refreshed: | 2025-10-18 15:02:56 |
| Package Statistics | |
|---|---|
| Total Downloads: | 53 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
A boilerplate of laravel administrator package for laravel 5.
Run composer require cendekia/laravel-admin-boilerplate
Run composer install
Add providers
providers => [
...
Cendekia\LaravelAdminBoilerplate\AdminBoilerplateServiceProvider::class,
...
]
Run php artisan vendor:publish --force
Defining One to One Relationship between User and UserRole, add this userRole method on existing User model
public function userRole()
{
return $this->hasOne(UserRole::class);
}
(For Laravel ^5.4) Registering admin route middlewares at App\Http\Kernel.php
...
'admin.auth' => \App\Http\Middleware\Admin\AdminAuthenticate::class,
'admin.logged' => \App\Http\Middleware\Admin\RedirectIfAuthenticated::class,
...