Skip to content

cran208/laravel-reviewable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel reviewable for Eloquent

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

About

Laravel reviewable for Eloquent

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%