hgrimelid
hgrimelid
FFilament
Created by hgrimelid on 8/25/2023 in #❓┊help
Including a Livewire component inside an Infolist
Hi, I try to render a small Livewire component inside an Infolist modal. It renders when using ViewEntry component, but when I call a method from the Livewire component, it fails with the error
Unable to call component method. Public method [confirmLoginLink] not found on component
The component is supposed to start some background stuff and then update when a model instance is changed. ViewEntry
Infolists\Components\ViewEntry::make('get_login_link')
->view('livewire.get-login-link', ['site' => $infolist->record->site]),
Infolists\Components\ViewEntry::make('get_login_link')
->view('livewire.get-login-link', ['site' => $infolist->record->site]),
Livewire template
<button type="submit" wire:click="confirmLoginLink({{ $site->id }})">
Click me
</button>
<button type="submit" wire:click="confirmLoginLink({{ $site->id }})">
Click me
</button>
I suspect that I'm using the wrong approach here, and would appreciate if someone could point me in the right direction.
6 replies
FFilament
Created by hgrimelid on 8/22/2023 in #❓┊help
Missing strings
Hi, I'm testing out Filament 3 in an existing Laravel project. I created an admin panel by php artisan filament:install --panels and navigation to localhost:8000/admin It seems like all strings are missing, as only the Laravel string references are shown everywhere. Like - filament-panels::pages/dashboard.title - filament-panels::widgets/filament-info-widget.actions.open_documentation.label - etc Any ideas what could be wrong? Thanks!
7 replies