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

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

보호된 프로퍼티들

프로퍼티 타입 설명
$fillable

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

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

administrators() 공개 메소드

A role belongs to many users.
public administrators ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
리턴 Illuminate\Database\Eloquent\Relations\BelongsToMany

can() 공개 메소드

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

cannot() 공개 메소드

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

permissions() 공개 메소드

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

프로퍼티 상세

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

protected $fillable