public function createTable($name, Array $columns, $safe_create = false)
	{
		if( (! $safe_create) || ($safe_create && ! Schema::connection($this->connection)->hasTable('users')) )
		{
			// dtop table if exists
			if (Schema::connection($this->connection)->hasTable($name))
			{
				Schema::connection($this->connection)->drop($name);
			}
			
			Schema::connection($this->connection)->create($name, function($table) use ($columns)
			{
				foreach($columns as $name => $type)
				{
		    		$table->$type($name);
		    	}
			});
		}
	}
public function createTable($name, Array $columns, $safe_create = false)
	{
		if( (! $safe_create) || ($safe_create && ! Schema::connection($this->connection)->hasTable('users')) )
		{
			// dtop table if exists
			if (Schema::connection($this->connection)->hasTable($name))
			{
				Schema::connection($this->connection)->drop($name);
			}
			
			Schema::connection($this->connection)->create($name, function($table) use ($columns)
			{
				foreach($columns as $name => $type)
				{
		    		$table->$type($name);
		    	}
			});
		}
	}
public function createTable ( $ name , Array $ columns , $ safe_create = false ) { if ( ( ! $ safe_create ) || ( $ safe_create && ! Schema :: connection ( $ this -> connection ) -> hasTable ( 'users' ) ) ) { // dtop table if exists if ( Schema :: connection ( $ this -> connection ) -> hasTable ( $ name ) ) { Schema :: connection ( $ this -> connection ) -> drop ( $ name ) ; } Schema :: connection ( $ this -> connection ) -> create ( $ name , function ( $ table ) use ( $ columns ) { foreach ( $ columns as $ name => $ type ) { $ table -> $ type ( $ name ) ; } } ) ; } }
Create a table schme with the given columns

@param  $name table name
@param  Array $columns "type" => "name"
@param  $safe_create if is enabled doesnt create a table if already exists
Create a table schme with the given columns