-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from hellboy1975/release/0.1.3
Release/0.1.3
- Loading branch information
Showing
8 changed files
with
490 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace App\Livewire; | ||
|
||
use Filament\Forms\Components\Group; | ||
use Filament\Forms\Components\TextInput; | ||
use Jeffgreco13\FilamentBreezy\Livewire\PersonalInfo; | ||
|
||
class PilsiProfileComponent extends PersonalInfo | ||
{ | ||
public array $only = ['name', 'email', 'location']; | ||
|
||
protected function getProfileFormSchema() | ||
{ | ||
$groupFields = Group::make([ | ||
$this->getNameComponent(), | ||
$this->getEmailComponent(), | ||
$this->getLocationComponent(), | ||
])->columnSpan(2); | ||
|
||
return ($this->hasAvatars) | ||
? [filament('filament-breezy')->getAvatarUploadComponent(), $groupFields] | ||
: [$groupFields]; | ||
} | ||
|
||
protected function getLocationComponent(): TextInput | ||
{ | ||
return TextInput::make('location') | ||
->required() | ||
->label(__('Location')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace App\Pages; | ||
|
||
use Jeffgreco13\FilamentBreezy\Pages\MyProfilePage; | ||
|
||
class PilsiProfilePage extends MyProfilePage | ||
{ | ||
protected static ?string $navigationIcon = 'heroicon-o-user'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.