webbundels / changelog
Webbundels changelog
1.3.2
2022-02-25 10:24 UTC
Requires (Dev)
- orchestra/testbench: ^5.0
README
Changelog
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'); }