Use getPdo, https://laracasts.com/discuss/channels/guides/getpdo-usage
You should be able to write a regular query you familiar with.
I use regular queries quite often.
Just quick example
public function getOne($dogid)
{
$sql = "SELECT * FROM " . PREFIX . "dogs WHERE dogid = :dogid";
$sth = DB::getPdo()->prepare($sql);
$params = [':dogid' => $dogid];
$sth->execute($params);
return $sth->fetch(\PDO::FETCH_OBJ);
}
Make sure you import the DB facade.