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