public function isManuallyChangedSlugInEditForm($slug, $id=false)
    {
        // If there is no $id, then there's nothing to figure out!
        if (!$id) return false;

        $record = DB::table($this->model->table)
            ->where('id', $id)
            ->first()
        ;

        if ($record->slug == $slug) {

            // The slug entered into the form is the same slug that is already in the database, so no change...
            return false;

        } else {

            // The slug entered into the form is different than the slug in the database, so yes it has changed...
            return true;
        }
    }
public function isManuallyChangedSlugInEditForm($slug, $id=false)
    {
        // If there is no $id, then there's nothing to figure out!
        if (!$id) return false;

        $record = DB::table($this->model->table)
            ->where('id', $id)
            ->first()
        ;

        if ($record->slug == $slug) {

            // The slug entered into the form is the same slug that is already in the database, so no change...
            return false;

        } else {

            // The slug entered into the form is different than the slug in the database, so yes it has changed...
            return true;
        }
    }
public function isManuallyChangedSlugInEditForm ( $ slug , $ id = false ) { // If there is no $id, then there's nothing to figure out! if ( ! $ id ) return false ; $ record = DB :: table ( $ this -> model -> table ) -> where ( 'id' , $ id ) -> first ( ) ; if ( $ record -> slug == $ slug ) { // The slug entered into the form is the same slug that is already in the database, so no change... return false ; } else { // The slug entered into the form is different than the slug in the database, so yes it has changed... return true ; } }
Was the slug changed in the edit form?

@param  text  $slug
@param  int   $id        The id of the record (eg, of the posts table) that is currently being edited
@return bool
Was the slug changed in the edit form?