PHP Class Encore\Admin\Auth\Database\Administrator

Inheritance: extends Illuminate\Database\Eloquent\Model, implements Illuminate\Contracts\Auth\Authenticatable, use trait Illuminate\Auth\Authenticatable
Datei anzeigen Open project: z-song/laravel-admin Class Usage Examples

Protected Properties

Property Type Description
$fillable

Public Methods

Method 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 method

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

can() public method

Check if user has permission.
public can ( $permission ) : boolean
$permission
return boolean

cannot() public method

Check if user has no permission.
public cannot ( $permission ) : boolean
$permission
return boolean

isRole() public method

Check if user is $roles.
public isRole ( $roles ) : mixed
$roles
return mixed

roles() public method

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

visible() public method

If visible for roles.
public visible ( $roles ) : boolean
$roles
return boolean

Property Details

$fillable protected_oe property

protected $fillable