Example #1
0
 /**
  * Drop a database table from the schema.
  *
  * @param  string  $table
  * @param  string  $connection
  * @return void
  */
 public static function drop($table, $connection = null)
 {
     $table = new Schema\Table($table);
     $table->on($connection);
     // To indicate that the table needs to be dropped, we will run the
     // "drop" command on the table instance and pass the instance to
     // the execute method as calling a Closure isn't needed.
     $table->drop();
     return static::execute($table);
 }
Example #2
0
 public static function drop($table, $connection = null)
 {
     $table = new Schema\Table($table);
     $table->on($connection);
     $table->drop();
     return static::execute($table);
 }