F
Filament9mo ago
Itachi

How showing textfield in page

hello sir, in my filament project i create a training session page with
php artisan make:filament-page traingingsession
php artisan make:filament-page traingingsession
command now in that page i want a textfield and textarea and their show data like the given picture for this i write
public static function form(Form $form): Form
{
return $form
->schema([

Forms\Components\TextInput::make('video'),
Forms\Components\TextInput::make('text'),
Forms\Components\Textarea::make('description')
]);
}
public static function form(Form $form): Form
{
return $form
->schema([

Forms\Components\TextInput::make('video'),
Forms\Components\TextInput::make('text'),
Forms\Components\Textarea::make('description')
]);
}
but it now work also i try
protected function getFormSchema(): array
{
return [
Forms\Components\TextInput::make('video'),
Forms\Components\TextInput::make('text'),
Forms\Components\Textarea::make('description')

];
}
protected function getFormSchema(): array
{
return [
Forms\Components\TextInput::make('video'),
Forms\Components\TextInput::make('text'),
Forms\Components\Textarea::make('description')

];
}
this function but it was not work please give me some solution
No description
Solution:
Inside the blade file of the page add this {{ $this->form }}
Jump to solution
2 Replies
Solution
lodeki
lodeki9mo ago
Inside the blade file of the page add this {{ $this->form }}
Itachi
Itachi9mo ago
Thank you