F
Filamentβ€’14mo ago
torriv

Adding livewire component to custom page

I have a custom page where i'm showing a table. The table is in different livewire components. for example the header is in one components and the rows are in another component. it's working fine locally. But as soon as i deploy it, i get
Unable to find component: [landslag.weekplan.table-header]
Unable to find component: [landslag.weekplan.table-header]
in my page i have this code:
<x-filament-panels::page>
<div class="overflow-y-auto overflow-x-auto">
<table class="w-full min-w-full dark:bg-gray-800 text-white dark:border-gray-700 rounded-xl">

@livewire('landslag.weekplan.table-header')

//Rest of my code
</table>
</div>
</x-filament-panels::page>
<x-filament-panels::page>
<div class="overflow-y-auto overflow-x-auto">
<table class="w-full min-w-full dark:bg-gray-800 text-white dark:border-gray-700 rounded-xl">

@livewire('landslag.weekplan.table-header')

//Rest of my code
</table>
</div>
</x-filament-panels::page>
i also tried with this:
<livewire:landslag.weekplan.table-header />
<livewire:landslag.weekplan.table-header />
Does anyone have any clue where i can start debugging this? i've been trying for a long time now.
Solution:
i figured it out. not sure why it's needed, but i had a livewire.php config file on my local environment, but not in my production. when i uploaded the config file, it all worked fine....
Jump to solution
6 Replies
torriv
torrivOPβ€’14mo ago
Anyone? πŸ™‚
arul
arulβ€’14mo ago
your livewire folder and file location ? <livewire:barang-masuk :barang="$barang" />
torriv
torrivOPβ€’14mo ago
the view and component are under:
resources/views/livewire/landslag/weekplan/table-header.blade.php
resources/views/livewire/landslag/weekplan/table-header.blade.php
and
app/Http/Livewire/Landslag/Weekplan/TableHeader.php
app/Http/Livewire/Landslag/Weekplan/TableHeader.php
arul
arulβ€’14mo ago
Name space namespace App\Http\Livewire\SomeThing ??
torriv
torrivOPβ€’14mo ago
namespace App\Http\Livewire\Landslag\Weekplan;
Solution
torriv
torrivβ€’14mo ago
i figured it out. not sure why it's needed, but i had a livewire.php config file on my local environment, but not in my production. when i uploaded the config file, it all worked fine.
Want results from more Discord servers?
Add your server