el.polar
Edit view from relationManager
And this is my code
use Filament\Infolists\Infolist;
use Filament\Infolists\Components\Group;
use Filament\Infolists\Components\Section;
use Filament\Infolists\Components\TextEntry;
class ClassRelationManager extends RelationManager
{
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
Section::make()
->schema([
Group::make([
TextEntry::make('title')
->label(''),
]),
]),
]);
}
}
11 replies
How can i translate the content of Forms\Components\Select?
The goal is to use the list in case elements are increased in the future and use that constant list in several places. Or can you show me an example please?
PS: Sorry if my English is not so good 😬
13 replies
How can i remove this default label text in resource
If you need change text "Create Employee", you should use this:
use Illuminate\Contracts\Support\Htmlable;
public function getTitle(): string | Htmlable { return __('Create new employee'); } In mi opinion it's the best option, because you can use traductions too.
public function getTitle(): string | Htmlable { return __('Create new employee'); } In mi opinion it's the best option, because you can use traductions too.
6 replies