Skip to content

Instantly share code, notes, and snippets.

@lucacastelnuovo
Last active August 18, 2023 12:23
Show Gist options
  • Save lucacastelnuovo/36cf99a0aae0b99c5377aed729c4407b to your computer and use it in GitHub Desktop.
Save lucacastelnuovo/36cf99a0aae0b99c5377aed729c4407b to your computer and use it in GitHub Desktop.
<?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