Skip to content

Pages

ListEntries, CreateEntry, EditEntry, and custom Livewire pages.

Pages are Livewire components rendered inside a panel layout.

Resource CRUD pages

Class Purpose
ListEntries Table listing
CreateEntry Create form
EditEntry Edit form

Namespace: Streams\Ui\Livewire\Pages

Register through resource getPages():

return [
    'index' => ListEntries::route('/'),
    'create' => CreateEntry::route('/create'),
    'edit' => EditEntry::route('/{entry}/edit'),
];

Each page sets protected static string $resource = PostResource::class.

Custom pages

Extend Streams\Ui\Livewire\Pages\PanelPage for standalone screens:

class DashboardPage extends PanelPage
{
    protected static string $view = 'ui::pages.dashboard';
    protected static ?string $navigationLabel = 'Dashboard';
}

Register on the panel:

Panel::make('admin')->pages([DashboardPage::class]);

Related