This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
You can install the package via composer:
composer require adamhut/approvable
php artisan vendor:publish --provider="Adamhut\Approvable\ApprovableServiceProvider" --tag="migrations"
php artisan migrate
First, add the Adamhut\Approvable\Traits\Approvable trait to your User model(s):
use Illuminate\Foundation\Auth\User as Authenticatable;
use Adamhut\Approvable\Traits\Approvable;
class User extends Authenticatable
{
use Approvable;
// ...
}
$user->isPending(); //true
$user->isApproved() //false
$user->isDenied(); //false
$user->approve();
$user->isApproved() //true
$user->isPending(); //false
$user->isDenied(); //false
$user->deny();
$user->isDenied() //true
$user->isApproved() //false
$user->isPending(); //false
We alse provide a summery command
php artisan approval:summary
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email adamhut@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.