/** * @author Michał Durys <*****@*****.**> * * @return \Illuminate\Database\Schema\Builder */ public function getSchemaBuilder() { $builder = parent::getSchemaBuilder(); $builder->blueprintResolver(function ($table, $callback) { return new MsSqlBlueprint($table, $callback); }); return $builder; }
/** * Get a schema builder instance for the connection. * * @return \Illuminate\Database\Schema\Builder */ public function getSchemaBuilder() { $parentBuilder = parent::getSchemaBuilder(); // add a blueprint resolver closure that returns the custom blueprint $parentBuilder->blueprintResolver(function ($table, $callback) { return new Blueprint($table, $callback); }); return $parentBuilder; }