Inheritance: extends Illuminate\Database\Schema\Blueprint
Beispiel #1
0
 private static function getSchemaBuilder($name = null)
 {
     $builder = static::$app['db']->connection($name)->getSchemaBuilder();
     $builder->blueprintResolver(function ($table, $callback) {
         $blueprint = new Blueprint($table, $callback);
         $blueprint->setMeta(static::$app[Meta::class]);
         return $blueprint;
     });
     return $builder;
 }