定制 confrariaweb/laravel-user 二次开发

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

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

confrariaweb/laravel-user

Composer 安装命令:

composer require confrariaweb/laravel-user

包简介

Complete user pack for laravel

README 文档

README

Complete user pack for laravel.

Install

From console use the following command:

composer require confrariaweb/laravel-user  

Publish the files needed for the package.

php artisan vendor:publish --tag=public --force  
php artisan vendor:publish --tag=config --force 
php artisan config:cache 

Then create the tables with artisan migrate:

php artisan migrate  

In the App\Models\User class include the trait "ConfrariaWeb\User\Traits\UserTrait" in the following way;
Also include the values in the fillable variable;

<?php  
  
namespace  App;  
use ConfrariaWeb\User\Traits\UserTrait;  
use Illuminate\Contracts\Auth\MustVerifyEmail;  
use Illuminate\Foundation\Auth\User  as Authenticatable;  
use Illuminate\Notifications\Notifiable;  
  
class  User  extends Authenticatable  
{  
use  Notifiable;  
use  UserTrait;  
/**  
* The attributes that are mass assignable.  
*  
* @var  array  
*/  
  
protected $fillable = ['name', 'email', 'password', 'status', 'settings',  'options', 'account_id'
];  
  
/**  
* The attributes that should be hidden for arrays.  
*  
* @var  array  
*/  
protected $hidden = ['password', 'remember_token',  
];  
  
/**  
* The attributes that should be cast to native types.  
*  
* @var  array  
*/  
  
protected $casts = ['email_verified_at' => 'datetime',  
];  
  
}  

The value for "account_id" should only be included in the array if using the laravel cw accounts package

##Check package
To verify that the package is installed correctly use the following artisan command:

php artisan user:check-package  

Acl Permissions

  • admin.users.index = Visualiza usuários
  • admin.users.edit = Editar Usuários
  • admin.users.show = Ver Usuário Especifico
  • admin.users.destroy = Deletar Usuário

License

The Laravel framework is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-07