src/Models/Permission.php 1 location
|
@@ 32-41 (lines=10) @@
|
| 29 |
|
* |
| 30 |
|
* @param array $attributes |
| 31 |
|
*/ |
| 32 |
|
public function __construct(array $attributes = []) |
| 33 |
|
{ |
| 34 |
|
$attributes['guard_name'] = $attributes['guard_name'] ?? \config('auth.defaults.guard'); |
| 35 |
|
|
| 36 |
|
parent::__construct($attributes); |
| 37 |
|
|
| 38 |
|
$this->helpers = new Helpers(); |
| 39 |
|
|
| 40 |
|
$this->setTable(\config('permission.collection_names.permissions')); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
/** |
| 44 |
|
* Create new Permission |
src/Models/Role.php 1 location
|
@@ 34-43 (lines=10) @@
|
| 31 |
|
* |
| 32 |
|
* @param array $attributes |
| 33 |
|
*/ |
| 34 |
|
public function __construct(array $attributes = []) |
| 35 |
|
{ |
| 36 |
|
$attributes['guard_name'] = $attributes['guard_name'] ?? \config('auth.defaults.guard'); |
| 37 |
|
|
| 38 |
|
parent::__construct($attributes); |
| 39 |
|
|
| 40 |
|
$this->helpers = new Helpers(); |
| 41 |
|
|
| 42 |
|
$this->setTable(\config('permission.collection_names.roles')); |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
/** |
| 46 |
|
* @param array $attributes |