1: <?php namespace Illuminate\Support\Facades;
2:
3: class Schema extends Facade {
4:
5: /**
6: * Get a schema builder instance for a connection.
7: *
8: * @param string $name
9: * @return \Illuminate\Database\Schema\Builder
10: */
11: public static function connection($name)
12: {
13: return static::$app['db']->connection($name)->getSchemaBuilder();
14: }
15:
16: /**
17: * Get the registered name of the component.
18: *
19: * @return string
20: */
21: protected static function getFacadeAccessor()
22: {
23: return static::$app['db']->connection()->getSchemaBuilder();
24: }
25:
26: }