'datetime', ]; public function password(): Attribute { return Attribute::make( set: fn($value) => Hash::make($value) ); } protected function serializeDate(\DateTimeInterface $date): string { return $date->format('d/m/Y H:i:s'); } public function roles(): BelongsToMany { return $this->belongsToMany(Role::class); } public function notifications(): BelongsToMany { return $this->belongsToMany(Notifications::class, 'notificacoes_users', 'notification_id', 'user_id'); } }