cendekia / laravel-admin-boilerplate
an administrator boilerplate feature for laravel 5
Installs: 52
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Type:laravel-package
Requires
- php: >=5.6.4
- laravel/framework: ^5.4
- laravelcollective/html: ^5.4
- yajra/laravel-datatables-oracle: ^7.9
This package is auto-updated.
Last update: 2024-10-26 01:26:42 UTC
README
A boilerplate of laravel administrator package for laravel 5.
Installation
-
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, ...