'datetime', ]; protected $hidden = [ 'password', ]; protected $fillable = [ 'first_name', 'last_name', 'email', 'password', ]; public function getFullNameAttribute(): string { return "$this->first_name $this->last_name"; } public function getFormattedEmailAttribute(): string { return sprintf( '%s <%s>', $this->getFullNameAttribute(), strtolower($this->email) ); } }