public function newQuery($excludeDeleted = true) {
    $builder = parent::newQuery($excludeDeleted);
    $builder->where(static::$table_type_field, '=', $this->table_type);

    return $builder;
  }
public function newQuery($excludeDeleted = true) {
    $builder = parent::newQuery($excludeDeleted);
    $builder->where(static::$table_type_field, '=', $this->table_type);

    return $builder;
  }
public function newQuery ( $ excludeDeleted = true ) { $ builder = parent :: newQuery ( $ excludeDeleted ) ; $ builder -> where ( static :: $ table_type_field , '=' , $ this -> table_type ) ; return $ builder ; }
Update newQuery to fetch data of the right type

@param  boolean $getOnlyMyType
@param  bool    $excludeDeleted
@return \Illuminate\Database\Eloquent\Builder|static
Update newQuery to fetch data of the right type