swilla
swilla
FFilament
Created by swilla on 1/30/2024 in #❓┊help
Error with widget in a blade view
Unable to find component: [Filament\Widgets\WidgetConfiguration] I tried this in a normal blade view, and a Livewire component. I have confirmed that the class exists. Livewire Component:
<?php

namespace App\Livewire;

use App\Models\Community;
use App\Models\Metric;
use Livewire\Component;

class ShowEmbed extends Component
{
public function render(Community $community, Metric $metric)
{
if (! request()->hasValidSignature()) {
abort(401);
}

return view('livewire.show-embed', [
'community' => $community,
'metric' => $metric,
]);
}
}
<?php

namespace App\Livewire;

use App\Models\Community;
use App\Models\Metric;
use Livewire\Component;

class ShowEmbed extends Component
{
public function render(Community $community, Metric $metric)
{
if (! request()->hasValidSignature()) {
abort(401);
}

return view('livewire.show-embed', [
'community' => $community,
'metric' => $metric,
]);
}
}
Blade View:
<div>
@livewire(App\Filament\Widgets\CascadingMetric::make([
'metric' => $metric,
'community' => $community,
]))
</div>
<div>
@livewire(App\Filament\Widgets\CascadingMetric::make([
'metric' => $metric,
'community' => $community,
]))
</div>
Layout File:
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">

<meta name="application-name" content="{{ config('app.name') }}">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{{ config('app.name') }}</title>

<style>
[x-cloak] {
display: none !important;
}
</style>

@filamentStyles
@vite('resources/css/app.css')
</head>

<body class="antialiased">
{{ $slot }}

@filamentScripts
@vite('resources/js/app.js')
</body>
</html>
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">

<meta name="application-name" content="{{ config('app.name') }}">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{{ config('app.name') }}</title>

<style>
[x-cloak] {
display: none !important;
}
</style>

@filamentStyles
@vite('resources/css/app.css')
</head>

<body class="antialiased">
{{ $slot }}

@filamentScripts
@vite('resources/js/app.js')
</body>
</html>
4 replies
FFilament
Created by swilla on 1/10/2024 in #❓┊help
Dynamically loaded Widgets do not refresh when changing filters on the page
No description
2 replies
FFilament
Created by swilla on 10/11/2023 in #❓┊help
Nav sidebar overflowing body
No description
7 replies
FFilament
Created by swilla on 8/29/2023 in #❓┊help
Select field overflowing grid layout until you interact with field
3 replies
FFilament
Created by swilla on 8/22/2023 in #❓┊help
Buttons have loading state after upgrade Filament v3 Upgrade
I think it must be how the layout file is setup, but I followed the instructions. Originallly we were getting the Livewire loaded twice error, but then we added the @livewireScriptConfig directive and those errors went away, but the loading state never turns off after page load. It seem like the buttons are working, aside from the loading state on them.
5 replies
FFilament
Created by swilla on 3/8/2023 in #❓┊help
Is it possible to select all items in a filament table by default?
I have a client that would like to unselect items before doing bulk actions instead of clicking select all first, they wanted to see if this could be the default state of the table when viewing that page.
2 replies