webbundels/essentials 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

webbundels/essentials

最新稳定版本:1.0.1

Composer 安装命令:

composer require webbundels/essentials

包简介

Webbundels Essentials

README 文档

README

Installation

  1. Add the package to your project.
composer require webbundels/essentials
  1. Add the needed arguments to your .env file
# The token that the package will use to send requests to github to gather info.
GITHUB_TOKEN='github_YOURTOKEN'
# The owner of the repositories, for example: github.com/{owner}/{repo}
GITHUB_OWNER='webbundels'
# The repository(ies) of which the package should gather commits from seperate each repository with a ','
GITHUB_REPOSITORIES='jongfresh-app,jongfresh-online'
  1. Migrate the database.
php artisan migrate

View permissions

  1. Add the methods 'getChangelogViewableAttribute' and 'getDocumentationViewableAttribute' to your user model.
  2. Write logic in this method that determines if the user can view the changelog/documentation page.
public function getChangelogViewableAttribute() :bool
{
    return $this->can('view_changelog');
}

public function getDocumentationViewableAttribute() :bool
{
    return $this->can('view_documentation');
}

Edit permissions

  1. Add the method 'getChangelogEditableAttribute' and 'getDocumentationEditableAttribute' to your user model.
  2. Write logic in this method that determines if the user can edit the changelog/documentation page.
public function getChangelogEditableAttribute() :bool
{
    return $this->can('edit_changelog');
}

public function getDocumentationEditableAttribute() :bool
{
    return $this->can('edit_changelog');
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-29