Свойство | Type | Description | |
---|---|---|---|
$fillable |
Méthode | Description | |
---|---|---|
__construct ( array $attributes = [] ) | Create a new Eloquent model instance. | |
can ( $permission ) : boolean | Check if user has permission. | |
cannot ( $permission ) : boolean | Check if user has no permission. | |
isRole ( $roles ) : mixed | Check if user is $roles. | |
roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany | A User belongs to many roles. | |
visible ( $roles ) : boolean | If visible for roles. |
public __construct ( array $attributes = [] ) | ||
$attributes | array |
public roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany | ||
Résultat | Illuminate\Database\Eloquent\Relations\BelongsToMany |