public function doesSlugAlreadyExist($slug)
    {
        $rowCount = DB::table($this->model->table)
            ->where('slug',  $slug)
            ->count();

        if ($rowCount > 0) return $rowCount;
        return 0;
    }
public function doesSlugAlreadyExist($slug)
    {
        $rowCount = DB::table($this->model->table)
            ->where('slug',  $slug)
            ->count();

        if ($rowCount > 0) return $rowCount;
        return 0;
    }
public function doesSlugAlreadyExist ( $ slug ) { $ rowCount = DB :: table ( $ this -> model -> table ) -> where ( 'slug' , $ slug ) -> count ( ) ; if ( $ rowCount > 0 ) return $ rowCount ; return 0 ; }
Does the slug already exist in the table?

@param  text  $slug
@return int
Does the slug already exist in the table?