public function short($code) { $url = Url::getBy(array('short' => $code)); $path = $url->getAttribute('long'); return redirect()->away($path); }