app-ark/laravel-reviewable

laravel eloquent reviewable

v0.0.7 2022-09-23 09:11 UTC

This package is auto-updated.

Last update: 2024-10-24 08:26:30 UTC


README

Installation

composer require app-ark/laravel-reviewable

Usage

Enable in you model

<?php
use AppArk\Database\Eloquent\Reviewable;

class MyModel
{
    use Reviewable;
    // ...
}

Static methods

  • MyModel::withRejected()
  • MyModel::withoutRejected()
  • MyModel::onlyRejected()
  • MyModel::withReviewed()
  • MyModel::withoutReviewed()
  • MyModel::onlyReviewed()

Dynamic methods

  • MyModel->review()
  • MyModel->reject()

Author

Xiaohui Lam

LICENSE

MIT