*/ protected $fillable = [ 'name', 'nip', 'password', 'role', 'is_active', ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; public function getHashidAttribute() { return hashidEncode($this->id); } /** * The attributes that should be cast. * * @var array */ protected $casts = []; }