PHP Class Encore\Admin\Auth\Database\Administrator

Inheritance: extends Illuminate\Database\Eloquent\Model, implements Illuminate\Contracts\Auth\Authenticatable, use trait Illuminate\Auth\Authenticatable
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.
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.

Method Details

__construct() public méthode

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

can() public méthode

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

cannot() public méthode

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

isRole() public méthode

Check if user is $roles.
public isRole ( $roles ) : mixed
$roles
Résultat mixed

roles() public méthode

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

visible() public méthode

If visible for roles.
public visible ( $roles ) : boolean
$roles
Résultat boolean

Property Details

$fillable protected_oe property

protected $fillable