No description, website, or topics provided.
JavaScript CSS Other
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
database/migrations
public
resources
src
.gitignore
README.md
composer.json
gulpfile.js
package.json

README.md

Laravel Admin Boilerplate

Laravel 5.x Status dev

A boilerplate of laravel administrator package for laravel 5.

Installation

  1. Run composer require cendekia/laravel-admin-boilerplate

  2. Run composer install

  3. Add providers

    	providers => [
    
    		...
    		Cendekia\LaravelAdminBoilerplate\AdminBoilerplateServiceProvider::class,
    		...
    
    	]
  4. Run php artisan vendor:publish --force

  5. 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);
    	}
  6. (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,
    	
    	...