프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
public __construct ( array $attributes = [] ) | ||
$attributes | array |
public roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany | ||
리턴 | Illuminate\Database\Eloquent\Relations\BelongsToMany |