PHP 클래스 Encore\Admin\Auth\Database\Administrator

상속: extends Illuminate\Database\Eloquent\Model, implements Illuminate\Contracts\Auth\Authenticatable, use trait Illuminate\Auth\Authenticatable
파일 보기 프로젝트 열기: z-song/laravel-admin 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$fillable

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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

can() 공개 메소드

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

cannot() 공개 메소드

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

isRole() 공개 메소드

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

roles() 공개 메소드

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

visible() 공개 메소드

If visible for roles.
public visible ( $roles ) : boolean
$roles
리턴 boolean

프로퍼티 상세

$fillable 보호되어 있는 프로퍼티

protected $fillable