webbundels/essentials
最新稳定版本:1.0.1
Composer 安装命令:
composer require webbundels/essentials
包简介
Webbundels Essentials
README 文档
README
Installation
- Add the package to your project.
composer require webbundels/essentials
- 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'
- Migrate the database.
php artisan migrate
View permissions
- Add the methods 'getChangelogViewableAttribute' and 'getDocumentationViewableAttribute' to your user model.
- 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
- Add the method 'getChangelogEditableAttribute' and 'getDocumentationEditableAttribute' to your user model.
- 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
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-29