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