public function checkSlug($slug) { $out = Record::where('section', '=', $this->id)->where('slug', '=', $slug)->get()->count(); return $out == 0 ? true : false; }