Last active
August 18, 2023 12:23
-
-
Save lucacastelnuovo/36cf99a0aae0b99c5377aed729c4407b to your computer and use it in GitHub Desktop.
Code for Discord question: https://discord.com/channels/883083792112300104/1140944002166837430/1142068725063876618
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
<?php | |
namespace App\Filament\AppPanel\Pages\Tenancy; | |
use Filament\Forms\Components\TextInput; | |
use Filament\Forms\Form; | |
use Filament\Pages\Tenancy\EditTenantProfile as BaseEditTenantProfile; | |
class EditTenantProfile extends BaseEditTenantProfile | |
{ | |
public static function getLabel(): string | |
{ | |
return __('Tenant profiel'); | |
} | |
public function form(Form $form): Form | |
{ | |
return $form | |
->schema([ | |
TextInput::make('name') | |
->label(__('Naam')) | |
->required() | |
->unique(ignoreRecord: true), | |
TextInput::make('avatar_url') | |
->label(__('Logo URL')) | |
->required() | |
->url(), | |
]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment