/** * Find a link by it's url * @param $url * @return mixed */ public function byUrl($url) { return $this->model->whereUrl($url)->first(); }