Search by

webbundels / changelog

nickvleeuwen

Webbundels changelog

Package info

github.com/webbundels/changelog

pkg:composer/webbundels/changelog

Statistics

Installs: 260

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.3.3 2024-07-11 08:50 UTC

This package is not auto-updated.

Last update: 2026-09-03 19:09:01 UTC


README

Installation

  1. Add the package to your project.
composer require webbundels/changelog
  1. Migrate the database.
php artisan migrate

View permissions

  1. Add the method 'getChangelogViewableAttribute' to your user model.
  2. 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

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