Property | Type | Description | |
---|---|---|---|
$fillable |
Method | Description | |
---|---|---|
__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. |
public __construct ( array $attributes = [] ) | ||
$attributes | array |
public administrators ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany | ||
return | Illuminate\Database\Eloquent\Relations\BelongsToMany |
public permissions ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany | ||
return | Illuminate\Database\Eloquent\Relations\BelongsToMany |