定制 intothesource/users 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

intothesource/users

最新稳定版本:1.0.12

Composer 安装命令:

composer require intothesource/users

包简介

User manager with roles (single and multiple)

README 文档

README

User manager with roles (single and multiple)

Install

composer require intothesource/users

This package also uses the Entrance package, for more information about that package go to that repositorie.

After install

ServiceProvider

Add the following line to "config/app.php"

at "providers":

IntoTheSource\Users\UsersServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,

And at "aliases":

'Form'      => Collective\Html\FormFacade::class,
'Html'      => Collective\Html\HtmlFacade::class,

Creating the files

Run the following command:

php artisan vendor:publish

Migration

Run the command:

php artisan migrate

Middleware

Add the following lines to the '$routeMiddleware' array in the file 'App/Http/Kernel.php'

'sourceOrAdmin' => \IntoTheSource\Users\Http\Middleware\IfSourceOrAdmin::class,

If you go to the user index you first need a role that sign in the config file at 'Middleware'

Database Seed

If you want to at basic roles, do the following thinks.
@note: if you want to use this be sure that you also included the database seeding of the Entrance package

Add to your 'DatabaseSeeder.php' file in the 'database/seeds' folder

$this->call(RoleTableSeeder::class);
$this->call(RoleUserTableSeeder::class);

After that run the next command:

php artisan db:seed

####### Or if you don't want to do that run the following commands:

first: php artisan db:seed --class=RoleTableSeeder
second: php artisan db:seed --class=RoleUserTableSeeder

统计信息

  • 总下载量: 778
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2
  • 更新时间: 2015-09-29