PHP Class app\models\Permission

Inheritance: extends Illuminate\Database\Eloquent\Model
显示文件 Open project: sroutier/laravel-5.1-enterprise-starter-kit Class Usage Examples

Protected Properties

Property Type Description
$fillable array

Public Methods

Method Description
assignRoles ( array $attributes = [] )
assignRoutes ( array $attributes = [] )
canBeAssigned ( ) : boolean
clearRouteAssociation ( )
getIsUsedAttribute ( ) : boolean
getIsUsedByRoleAttribute ( ) : boolean
getIsUsedByRouteAttribute ( ) : boolean
hasRole ( $roleName ) : boolean
isDeletable ( ) : boolean
isEditable ( ) : boolean
isForced ( $perm ) : boolean
menu ( )
routes ( )

Method Details

assignRoles() public method

public assignRoles ( array $attributes = [] )
$attributes array

assignRoutes() public method

public assignRoutes ( array $attributes = [] )
$attributes array

canBeAssigned() public method

public canBeAssigned ( ) : boolean
return boolean

clearRouteAssociation() public method

getIsUsedAttribute() public method

public getIsUsedAttribute ( ) : boolean
return boolean

getIsUsedByRoleAttribute() public method

getIsUsedByRouteAttribute() public method

hasRole() public method

public hasRole ( $roleName ) : boolean
$roleName
return boolean

isDeletable() public method

public isDeletable ( ) : boolean
return boolean

isEditable() public method

public isEditable ( ) : boolean
return boolean

isForced() public static method

public static isForced ( $perm ) : boolean
$perm
return boolean

menu() public method

public menu ( )

routes() public method

public routes ( )

Property Details

$fillable protected_oe property

protected array $fillable
return array