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