Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | trait DatabaseTraits |
||
6 | { |
||
7 | /** |
||
8 | * The table associated with the model. |
||
9 | * |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $table; |
||
13 | |||
14 | /** |
||
15 | * The connection name for the model. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $connection; |
||
20 | |||
21 | /** |
||
22 | * Create a new instance to set the table and connection. |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | public function __construct($attributes = []) |
||
31 | } |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Get the database connection. |
||
36 | */ |
||
37 | public function getConnectionName() |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Get the database table. |
||
44 | */ |
||
45 | public function getTableName() |
||
50 |