PHP Class app\Role

Inheritance: extends app\RoleAtom
Afficher le fichier Open project: appzcoder/laravel-admin Class Usage Examples

Protected Properties

Свойство Type Description
$fillable array The attributes that are mass assignable.

Méthodes publiques

Méthode Description
givePermissionTo ( Permission $permission ) : mixed Grant the given permission to a role.
permissions ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany A role may be given various permissions.

Method Details

givePermissionTo() public méthode

Grant the given permission to a role.
public givePermissionTo ( Permission $permission ) : mixed
$permission Permission
Résultat mixed

permissions() public méthode

A role may be given various permissions.
public permissions ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
Résultat Illuminate\Database\Eloquent\Relations\BelongsToMany

Property Details

$fillable protected_oe property

The attributes that are mass assignable.
protected array $fillable
Résultat array