public function saved($model)
    {
        if (static::syncingDisabledFor($model)) {
            return;
        }

        if (! $model->shouldBeSearchable()) {
            $model->unsearchable();

            return;
        }

        $model->searchable();
    }
public function saved($model)
    {
        if (static::syncingDisabledFor($model)) {
            return;
        }

        if (! $model->shouldBeSearchable()) {
            $model->unsearchable();

            return;
        }

        $model->searchable();
    }
public function saved ( $ model ) { if ( static :: syncingDisabledFor ( $ model ) ) { return ; } if ( ! $ model -> shouldBeSearchable ( ) ) { $ model -> unsearchable ( ) ; return ; } $ model -> searchable ( ) ; }
Handle the saved event for the model.

@param  \Illuminate\Database\Eloquent\Model  $model
@return void
Handle the saved event for the model .