PHP Interface Artesaos\Defender\Contracts\Permission

ファイルを表示 Open project: artesaos/defender

Public Methods

Method Description
newPivot ( Model $parent, array $attributes, string $table, boolean $exists ) : PermissionUserPivot | Illuminate\Database\Eloquent\Relations\Pivot
roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany Many-to-many permission-role relationship.
users ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany Many-to-many permission-user relationship.

Method Details

newPivot() public method

public newPivot ( Model $parent, array $attributes, string $table, boolean $exists ) : PermissionUserPivot | Illuminate\Database\Eloquent\Relations\Pivot
$parent Illuminate\Database\Eloquent\Model
$attributes array
$table string
$exists boolean
return PermissionUserPivot | Illuminate\Database\Eloquent\Relations\Pivot

roles() public method

Many-to-many permission-role relationship.
public roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
return Illuminate\Database\Eloquent\Relations\BelongsToMany

users() public method

Many-to-many permission-user relationship.
public users ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
return Illuminate\Database\Eloquent\Relations\BelongsToMany