webbundels / changelog
Webbundels changelog
Installs: 114
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/webbundels/changelog
Requires (Dev)
- orchestra/testbench: ^5.0
README
Installation
- Add the package to your project.
composer require webbundels/changelog
- Migrate the database.
php artisan migrate
View permissions
- Add the method 'getChangelogViewableAttribute' to your user model.
- Write logic in this method that determines if the user can view the changelog page.
public function getChangelogViewableAttribute() :bool { return $this->can('view_changelog'); }
Edit permissions
- Add the method 'getChangelogEditableAttribute' to your user model.
- Write logic in this method that determines if the user can edit the changelog page.
public function getChangelogEditableAttribute() :bool { return $this->can('edit_changelog'); }