public function insert()
	{
		$res = \DB::insert(call_user_func($this->model.'::table'), array_keys($this->values))
			->values(array_values($this->values))
			->execute($this->write_connection);

		// Failed to save the new record
		if ($res[1] === 0)
		{
			return false;
		}

		return $res[0];
	}
public function insert()
	{
		$res = \DB::insert(call_user_func($this->model.'::table'), array_keys($this->values))
			->values(array_values($this->values))
			->execute($this->write_connection);

		// Failed to save the new record
		if ($res[1] === 0)
		{
			return false;
		}

		return $res[0];
	}
public function insert ( ) { $ res = \ DB :: insert ( call_user_func ( $ this -> model . '::table' ) , array_keys ( $ this -> values ) ) -> values ( array_values ( $ this -> values ) ) -> execute ( $ this -> write_connection ) ; // Failed to save the new record if ( $ res [ 1 ] === 0 ) { return false ; } return $ res [ 0 ] ; }
Run INSERT with the current values

@return  bool|int    Last inserted ID (if present) or false on failure
Run INSERT with the current values