*/ protected $fillable = [ 'name', 'email', 'password', 'is_active', 'is_superuser', ]; /** * 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 = []; }