acoustep/entrust-gui

View on GitHub
src/Models/Permission.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace Acoustep\EntrustGui\Models;

use Esensi\Model\Contracts\ValidatingModelInterface;
use Esensi\Model\Traits\ValidatingModelTrait;
use Zizaco\Entrust\EntrustPermission;

class Permission extends EntrustPermission implements ValidatingModelInterface
{
    use ValidatingModelTrait;

    protected $throwValidationExceptions = true;

    protected $fillable = [
    'name',
    'display_name',
    'description',
    ];

    protected $rules = [
    'name'      => 'required|unique:permissions',
    ];
}