src/models/Permissions/PermissionProvider.php
public function findByValue($value)
    {
        if(!$permission = $this->createModel()->newQuery()->where('value', '=', $value)->get()->first()) {
            throw new PermissionNotFoundException("A permission could not be found with Value [$value].");
        }

        return $permission;
    }
public function findByValue($value)
    {
        if(!$permission = $this->createModel()->newQuery()->where('value', '=', $value)->get()->first()) {
            throw new PermissionNotFoundException("A permission could not be found with Value [$value].");
        }

        return $permission;
    }
Find a permission by the given permission value
@param  string $value
@return Permission