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