Creating a page

How can I place the form on a custom admin panel page (without the table showing)?
5 Replies
gustavo.dev
gustavo.devOP2y ago
I would like a form like this
gustavo.dev
gustavo.devOP2y ago
I was here
gustavo.dev
gustavo.devOP2y ago
public static function getPages(): array
{
return [
'index' => Pages\CreateDocuments::route('/'),
// 'create' => Pages\CreateDocuments::route('/create'),
// 'view' => Pages\ViewDocuments::route('/{record}'),
// 'edit' => Pages\EditDocuments::route('/{record}/edit'),
];
}
public static function getPages(): array
{
return [
'index' => Pages\CreateDocuments::route('/'),
// 'create' => Pages\CreateDocuments::route('/create'),
// 'view' => Pages\ViewDocuments::route('/{record}'),
// 'edit' => Pages\EditDocuments::route('/{record}/edit'),
];
}
LeandroFerreira
Filament allows you to create completely custom pages for the admin panel. https://filamentphp.com/docs/2.x/admin/pages/getting-started
protected function getFormSchema(): array
{
return [];
}
protected function getFormSchema(): array
{
return [];
}
<x-filament::page>
<form wire:submit.prevent="submit">
{{ $this->form }}
<button type="submit">Submit</button>
</form>
</x-filament::page>
<x-filament::page>
<form wire:submit.prevent="submit">
{{ $this->form }}
<button type="submit">Submit</button>
</form>
</x-filament::page>
Filament
Getting started - Pages - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
gustavo.dev
gustavo.devOP2y ago
thanks!!
Want results from more Discord servers?
Add your server