public function getSchemaBuilder() { $schemaBuilder = parent::getSchemaBuilder(); $schemaBuilder->blueprintResolver(function ($table, $callback) { return new Blueprint($table, $callback); }); return $schemaBuilder; }
/** * Get a schema builder instance for the connection. * * @return \Illuminate\Database\Schema\MySqlBuilder */ 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; }
/** * Get a schema builder instance for the connection. * * @return \Illuminate\Database\Schema\MySqlBuilder * @static */ public static function getSchemaBuilder() { return \Illuminate\Database\MySqlConnection::getSchemaBuilder(); }