public function insert($query, $bindings = [])
    {
        try {
            $this->statement($query, $bindings);

            return true;
        } catch (\Exception $e) {
            throw new InternalServerErrorException('Insert failed. ' . $e->getMessage());
        }
    }
public function insert($query, $bindings = [])
    {
        try {
            $this->statement($query, $bindings);

            return true;
        } catch (\Exception $e) {
            throw new InternalServerErrorException('Insert failed. ' . $e->getMessage());
        }
    }
public function insert ( $ query , $ bindings = [ ] ) { try { $ this -> statement ( $ query , $ bindings ) ; return true ; } catch ( \ Exception $ e ) { throw new InternalServerErrorException ( 'Insert failed. ' . $ e -> getMessage ( ) ) ; } }
Run an insert statement against the database.

@param  string $query
@param  array  $bindings

@return bool
@throws InternalServerErrorException
Run an insert statement against the database .