Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions resources/lang/en/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@
'sponsor' => 'Sponsor Cachet',
],
],
'user' => [
'items' => [
'edit_profile' => 'Edit Profile',
],
],
];
2 changes: 2 additions & 0 deletions src/CachetDashboardServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Cachet;

use Cachet\Filament\Pages\EditProfile;
use Cachet\Http\Middleware\SetAppLocale;
use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\DisableBladeIconComponents;
Expand Down Expand Up @@ -30,6 +31,7 @@ public function panel(Panel $panel): Panel
->default()
->login()
->passwordReset()
->profile(EditProfile::class)
->brandLogo(fn () => view('cachet::filament.brand-logo'))
->brandLogoHeight('2rem')
->colors([
Expand Down
31 changes: 31 additions & 0 deletions src/Filament/Pages/EditProfile.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace Cachet\Filament\Pages;

use Filament\Forms\Form;
use Filament\Pages\Auth\EditProfile as BaseEditProfile;
use Illuminate\Contracts\Support\Htmlable;

class EditProfile extends BaseEditProfile
{
public function getTitle(): string|Htmlable
{
return __('cachet::navigation.user.items.edit_profile');
}

public static function isSimple(): bool
{
return false;
}

public function form(Form $form): Form
{
return $form
->schema([
$this->getNameFormComponent(),
$this->getEmailFormComponent(),
$this->getPasswordFormComponent(),
$this->getPasswordConfirmationFormComponent(),
]);
}
}