Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function __invoke(Request $request) |
||
25 | { |
||
26 | $this->tableClass = CompanyTable::class; |
||
27 | $conn = $this->getConnection(); |
||
28 | if($conn == 'tenant') { |
||
29 | $this->tableClass = CompanyTableIndi::class; |
||
30 | } |
||
31 | |||
32 | ['table' => $table, 'config' => $config] = $this->data($request); |
||
33 | |||
34 | return (new DataBuilder($table, $config))->toArray() |
||
35 | + (new MetaBuilder($table, $config))->toArray(); |
||
36 | } |
||
38 |