Skip to content

lostgdi/admin-account

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

admin-account for laravel 5

Instruction

As we build our new project so often , We need a more convenient way to avoid these boring work for user managerment , such as: New , Modify , Delete.

Installation

  • Run composer require lostgdi/admin-account
  • Add Lostgdi\Admin\App\Providers\AdminServiceProvider::class, to providers in config/app.php
  • Add 'Admin' => Lostgdi\Admin\App\Facades\Admin::class, to aliases in config/app.php
  • Add 'auth_admin_account' => \Lostgdi\Admin\App\Http\Middleware\AuthenticateAdminAccount::class, to routeMiddleware in app/http/kernel.php
  • Add 'auth_admin_account_manager' => \Lostgdi\Admin\App\Http\Middleware\AuthenticateAdminAccountManager::class, to routeMiddleware in app/http/kernel.php
  • Run php artisan vendor:publish

DataBase Setup

Note: You should handle your user table , depanding on your situation. Either drop user table then excute the migrate command or your way of dealing.
  • Run php artisan migrate
  • Run php artisan db:seed --class=DatabaseSeeder_user

Usage