示例#1
0
 /**
  * Create a new database query instance
  *
  * @param string
  * @param object Connector
  */
 public function __construct($table, $connection = null)
 {
     if (is_null($connection)) {
         $connection = DB::connection();
     }
     $this->table = $table;
     $this->connection = $connection;
 }