コード例 #1
0
 public function create(array $data)
 {
     $password = $data['password'];
     $data['password'] = bcrypt($password);
     $result = parent::create($data);
     event(new UserCreatedEvent($result, $password));
     return $result;
 }
コード例 #2
0
 /**
  * RoleRepositoryEloquent constructor.
  * @param PermissionRepositoryInterface $permissionRepository
  */
 public function __construct(PermissionRepositoryInterface $permissionRepository)
 {
     parent::__construct();
     $this->permissionRepository = $permissionRepository;
 }