lostgdi/admin-account

There is no license information available for the latest version (1.2) of this package.

A base administration system

1.2 2016-02-14 09:32 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:26:14 UTC


README

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