Total Complexity | 6 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 85.71% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait IsAranguentModel |
||
10 | { |
||
11 | /** |
||
12 | * @override |
||
13 | * Create a new Eloquent query builder for the model. |
||
14 | * |
||
15 | * @param QueryBuilder $query |
||
16 | * |
||
17 | * @return Builder |
||
18 | */ |
||
19 | 57 | public function newEloquentBuilder($query) |
|
20 | { |
||
21 | 57 | return new Builder($query); |
|
22 | } |
||
23 | |||
24 | /** |
||
25 | * Get a new query builder instance for the connection. |
||
26 | * |
||
27 | * @return \Illuminate\Database\Query\Builder |
||
28 | */ |
||
29 | 57 | protected function newBaseQueryBuilder() |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * Qualify the given column name by the model's table. |
||
36 | * |
||
37 | * @param string $column |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | 33 | public function qualifyColumn($column) |
|
50 | } |
||
51 | |||
52 | /** |
||
53 | * Get the default foreign key name for the model. |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | 7 | public function getForeignKey() |
|
68 |