public function getTokenAttribute() { return Hashids::encrypt($this->id); }
public function save(Model $model) { $model->save(); $model->hash = \Hashids::encrypt($model->id); $model->save(); }