PHP Class Encore\Admin\Auth\Database\Role

Inheritance: extends Illuminate\Database\Eloquent\Model
Afficher le fichier Open project: z-song/laravel-admin Class Usage Examples

Protected Properties

Свойство Type Description
$fillable

Méthodes publiques

Méthode Description
__construct ( array $attributes = [] ) Create a new Eloquent model instance.
administrators ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany A role belongs to many users.
can ( $permission ) : boolean Check user has permission.
cannot ( $permission ) : boolean Check user has no permission.
permissions ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany A role belongs to many permissions.

Method Details

__construct() public méthode

Create a new Eloquent model instance.
public __construct ( array $attributes = [] )
$attributes array

administrators() public méthode

A role belongs to many users.
public administrators ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
Résultat Illuminate\Database\Eloquent\Relations\BelongsToMany

can() public méthode

Check user has permission.
public can ( $permission ) : boolean
$permission
Résultat boolean

cannot() public méthode

Check user has no permission.
public cannot ( $permission ) : boolean
$permission
Résultat boolean

permissions() public méthode

A role belongs to many permissions.
public permissions ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
Résultat Illuminate\Database\Eloquent\Relations\BelongsToMany

Property Details

$fillable protected_oe property

protected $fillable