kharanenka / laravel-scope-moderation by Andrey Kharanenka

Scope for field 'moderation' (bool)
28,899
1
2
Package Data
Maintainer Username: Andrey Kharanenka
Maintainer Contact: kharanenka@gmail.com (Andrey Kharanenka)
Package Create Date: 2016-11-14
Package Last Update: 2016-11-14
Language: PHP
License: GPL-3.0
Last Refreshed: 2024-04-22 03:03:26
Package Statistics
Total Downloads: 28,899
Monthly Downloads: 475
Daily Downloads: 8
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Trait ModerationField

You can use trait in your models with "moderation" field (bool)

#Installation Require this package in your composer.json and update composer.


"kharanenka/laravel-scope-moderation": "1.0.*"

Usage


    
    class MyModel extend Model {
    
        use Kharanenka\Scope\ModerationField;
    
        ...
    
    }
    
    $obElement = MyModel::moderation()->first();
    $obElement = MyModel::notModeration()->first();