webbundels/documentation

Documentation crud package

Installs: 101

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/webbundels/documentation

1.4.0 2022-05-10 14:47 UTC

This package is not auto-updated.

Last update: 2025-10-08 06:45:59 UTC


README

Installation

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

View permissions

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

Edit permissions

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