Total Complexity | 2 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class Schema extends BaseFacade |
||
11 | { |
||
12 | /** |
||
13 | * Returns a new schema builder instance for the specified connection. |
||
14 | * |
||
15 | * @param string $name |
||
16 | * |
||
17 | * @return \Illuminate\Database\Schema\Builder |
||
18 | */ |
||
19 | public static function connection($name) |
||
20 | { |
||
21 | // Create the schema builder |
||
22 | $schema = parent::connection($name); |
||
23 | |||
24 | // Use the custom blueprint |
||
25 | $schema->blueprintResolver(function($table, $callback) { |
||
26 | return new Blueprint($table, $callback); |
||
27 | }); |
||
28 | |||
29 | // Return the schema |
||
30 | return $schema; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Returns a new schema builder instance for the default connection. |
||
35 | * |
||
36 | * @return \Illuminate\Database\Schema\Builder |
||
37 | */ |
||
38 | protected static function getFacadeAccessor() |
||
50 | } |
||
51 | } |
||
52 |