install
This commit is contained in:
34
app/Filament/Pages/Auth/EditProfile.php
Normal file
34
app/Filament/Pages/Auth/EditProfile.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Pages\Auth;
|
||||
|
||||
use Filament\Auth\Pages\EditProfile as BaseEditProfile;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
|
||||
class EditProfile extends BaseEditProfile
|
||||
{
|
||||
public function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
Section::make('Profile Information')
|
||||
->description('Update your account\'s profile information and email address.')
|
||||
->components([
|
||||
TextInput::make('name')
|
||||
->label('Name')
|
||||
->required()
|
||||
->maxLength(255)
|
||||
->placeholder('Enter your full name'),
|
||||
$this->getEmailFormComponent(),
|
||||
]),
|
||||
Section::make('Update Password')
|
||||
->description('Ensure your account is using a long, random password to stay secure.')
|
||||
->components([
|
||||
$this->getPasswordFormComponent(),
|
||||
$this->getPasswordConfirmationFormComponent(),
|
||||
]),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user