src/Auth/Database/OperationLog.php 1 location
|
@@ 29-38 (lines=10) @@
|
| 26 |
|
* |
| 27 |
|
* @param array $attributes |
| 28 |
|
*/ |
| 29 |
|
public function __construct(array $attributes = []) |
| 30 |
|
{ |
| 31 |
|
$connection = config('admin.database.connection') ?: config('database.default'); |
| 32 |
|
|
| 33 |
|
$this->setConnection($connection); |
| 34 |
|
|
| 35 |
|
$this->setTable(config('admin.database.operation_log_table')); |
| 36 |
|
|
| 37 |
|
parent::__construct($attributes); |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
/** |
| 41 |
|
* Log belongs to users. |
src/Auth/Database/Permission.php 1 location
|
@@ 29-38 (lines=10) @@
|
| 26 |
|
* |
| 27 |
|
* @param array $attributes |
| 28 |
|
*/ |
| 29 |
|
public function __construct(array $attributes = []) |
| 30 |
|
{ |
| 31 |
|
$connection = config('admin.database.connection') ?: config('database.default'); |
| 32 |
|
|
| 33 |
|
$this->setConnection($connection); |
| 34 |
|
|
| 35 |
|
$this->setTable(config('admin.database.permissions_table')); |
| 36 |
|
|
| 37 |
|
parent::__construct($attributes); |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
/** |
| 41 |
|
* Permission belongs to many roles. |
src/Auth/Database/Role.php 1 location
|
@@ 17-26 (lines=10) @@
|
| 14 |
|
* |
| 15 |
|
* @param array $attributes |
| 16 |
|
*/ |
| 17 |
|
public function __construct(array $attributes = []) |
| 18 |
|
{ |
| 19 |
|
$connection = config('admin.database.connection') ?: config('database.default'); |
| 20 |
|
|
| 21 |
|
$this->setConnection($connection); |
| 22 |
|
|
| 23 |
|
$this->setTable(config('admin.database.roles_table')); |
| 24 |
|
|
| 25 |
|
parent::__construct($attributes); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
/** |
| 29 |
|
* A role belongs to many users. |
src/Auth/Database/Menu.php 1 location
|
@@ 36-45 (lines=10) @@
|
| 33 |
|
* |
| 34 |
|
* @param array $attributes |
| 35 |
|
*/ |
| 36 |
|
public function __construct(array $attributes = []) |
| 37 |
|
{ |
| 38 |
|
$connection = config('admin.database.connection') ?: config('database.default'); |
| 39 |
|
|
| 40 |
|
$this->setConnection($connection); |
| 41 |
|
|
| 42 |
|
$this->setTable(config('admin.database.menu_table')); |
| 43 |
|
|
| 44 |
|
parent::__construct($attributes); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
/** |
| 48 |
|
* A Menu belongs to many roles. |
src/Auth/Database/Administrator.php 1 location
|
@@ 28-37 (lines=10) @@
|
| 25 |
|
* |
| 26 |
|
* @param array $attributes |
| 27 |
|
*/ |
| 28 |
|
public function __construct(array $attributes = []) |
| 29 |
|
{ |
| 30 |
|
$connection = config('admin.database.connection') ?: config('database.default'); |
| 31 |
|
|
| 32 |
|
$this->setConnection($connection); |
| 33 |
|
|
| 34 |
|
$this->setTable(config('admin.database.users_table')); |
| 35 |
|
|
| 36 |
|
parent::__construct($attributes); |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
/** |
| 40 |
|
* Get avatar attribute. |