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

v1.0-rc0 2017-07-06 06:46 UTC

This package is auto-updated.

Last update: 2024-10-26 01:26:42 UTC


README

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,
    	
    	...