/**
* @param $slug
* @param $callback
*
* @throws \Exception
*/
public function getDropDown($slug, $callback)
{
$dropDown = $this->links->where('slug', $this->snakeName($slug))->first();
if ($dropDown) {
call_user_func($callback, $dropDown);
} else {
throw new \Exception("Drop down {$slug} not found");
}
}