Exemple #1
0
 /**
  * Add a `select` clause to the current Command Bag
  *
  * Alias of retrieve
  *
  * @param array|null $data
  * @return Builder
  */
 public function insert(array $data = null)
 {
     //case of single entry, and case of multiple entries
     if (!is_array($data) || !isset($data[0]) || !is_array($data[0])) {
         //single entry situation.
         $data = [$data];
     }
     return parent::insert($data);
 }