Jon Mason
Jon Mason
FFilament
Created by Jon Mason on 3/16/2024 in #❓┊help
Uncaught (in promise) Component not found
no unfortunately I'm still trying to resolve it.
5 replies
FFilament
Created by Jon Mason on 10/2/2024 in #❓┊help
multiple dashboards
For some reason, this seems to fix the remaining issues: protected static ?string $navigationLabel = 'Month End Dashboard';
15 replies
FFilament
Created by Jon Mason on 10/2/2024 in #❓┊help
multiple dashboards
it has to be something about this:
->discoverWidgets(in: app_path('Filament/App/Widgets'), for: 'App\\Filament\\App\\Widgets')
->widgets([
])
->discoverWidgets(in: app_path('Filament/App/Widgets'), for: 'App\\Filament\\App\\Widgets')
->widgets([
])
But I just get different errors if I remove any of that..
15 replies
FFilament
Created by Jon Mason on 10/2/2024 in #❓┊help
multiple dashboards
I added a getWidgets method to each class so I could get the right widgets included on each dashboard. Now, despite having fully gutted my new Dashboard class, and having getWidgets() return an empty array, it's still returning the widget.
15 replies
FFilament
Created by Jon Mason on 10/2/2024 in #❓┊help
multiple dashboards
ok I was able to fix that with: protected static string $routePath = '/'; in my MonthEndDashboard class. Now I'm getting a different error in my widget class...oof.
15 replies
FFilament
Created by Jon Mason on 10/2/2024 in #❓┊help
multiple dashboards
->pages([
Dashboard::class,
MonthEndDashboard::class,
])
->pages([
Dashboard::class,
MonthEndDashboard::class,
])
15 replies
FFilament
Created by Jon Mason on 10/2/2024 in #❓┊help
multiple dashboards
I switched everything back to where I have 2 pages that extend \Filament\Pages\Dashboard, and now i'm getting Route [filament.app.pages.dashboard] not defined.
15 replies
FFilament
Created by Jon Mason on 10/2/2024 in #❓┊help
multiple dashboards
oh wait I just remembered about the discoverWidgets method...so I've gotta figure out how to make it not find the widgets for the old dashboard when you navigate to the new one.
15 replies
FFilament
Created by Jon Mason on 10/2/2024 in #❓┊help
multiple dashboards
ok, so I didn't do a good job explaining what I was trying to do, I was running into an issue with the first step, but didn't describe the end goal. I have a class I've been using for the dashboard. It needs to stay like a dashboard, but I need to move it, and have it not be the main page anymore, and I need to create a new dashboard. So I moved the old one to the pages directory and tried to make it extend the Page class, which I was able to do by adding a couple of methods., and copying the markup from the stock dashboard view. So I've almost got everything at this point, the old dashboard functions like I intend it to when I navigate to that page, but the new dashboard that's supposed to replace it as the true dashboard for the panel doesn't work. It's trying to access the widgets from the old dashboard. I feel like I've fixed all the references and anything that would cause it to do that.
15 replies
FFilament
Created by Jon Mason on 10/2/2024 in #❓┊help
multiple dashboards
Would love it if there's an example repo where something like this is implemented so I could go poke around...it helps me to see examples rather than abstract descriptions.
15 replies
FFilament
Created by Jon Mason on 9/25/2024 in #❓┊help
Can't access tenant in Test class?
ok, i'll give it a try, thanks!
6 replies
FFilament
Created by Jon Mason on 4/17/2024 in #❓┊help
Sum of items selected on table?
no, I struggled with that for a while and eventually gave up on it.
7 replies
FFilament
Created by Jon Mason on 9/14/2024 in #❓┊help
wire:keydown call alpine method
duh...thanks.
5 replies
FFilament
Created by tinkypinky on 3/18/2024 in #❓┊help
Will Filament work with Laravel Reverb or does it need some config?
I want easy. lol. I've spent an ungodly amount of time messing around with broadcast notifications. Much less since I switched over to filament, but just wondering if it's worth investigating.
12 replies
FFilament
Created by tinkypinky on 3/18/2024 in #❓┊help
Will Filament work with Laravel Reverb or does it need some config?
Is there a big advantage to switching it over to reverb? I haven't dug too much into reverb yet..
12 replies
FFilament
Created by Jon Mason on 9/7/2024 in #❓┊help
Flux?
Yeah, these days I've found myself doing more livewire components with Filament forms or whatever in those components rather than using the panel builder. I do like the look and feel of what I've seen so far from Flux and would love to acheive that while still having the ease of use that comes with Filament forms.
12 replies
FFilament
Created by Jon Mason on 9/7/2024 in #❓┊help
Flux?
Makes sense…thanks!
12 replies
FFilament
Created by Jon Mason on 8/27/2024 in #❓┊help
Custom field with HasAffixes trait
ahh ok...I get it now...that works, thanks!
10 replies
FFilament
Created by Jon Mason on 8/27/2024 in #❓┊help
Custom field with HasAffixes trait
I want to define it in the component itself, but I'm evidently doing that wrong:
protected function setUp(): void
{
parent::setUp();

$this->prefixIcon = 'heroicon-o-currency-dollar';

$this->live(onBlur: true)
->afterStateUpdated(function (?string $state, ?string $old) {
if ($state != null) {
$updatedState = $this->performMathOperation($state);
$this->state($updatedState);
}
});
}
protected function setUp(): void
{
parent::setUp();

$this->prefixIcon = 'heroicon-o-currency-dollar';

$this->live(onBlur: true)
->afterStateUpdated(function (?string $state, ?string $old) {
if ($state != null) {
$updatedState = $this->performMathOperation($state);
$this->state($updatedState);
}
});
}
10 replies
FFilament
Created by Jon Mason on 8/27/2024 in #❓┊help
Custom field with HasAffixes trait
hmmm...when I do this:
<x-filament::input.wrapper :prefix-icon="$prefixIcon">

<x-filament::input type="text" x-model="state" @blur="updateState" />
</x-filament::input.wrapper>
<x-filament::input.wrapper :prefix-icon="$prefixIcon">

<x-filament::input type="text" x-model="state" @blur="updateState" />
</x-filament::input.wrapper>
I get the error: "str_contains(): Argument #1 ($haystack) must be of type string, Closure given"
10 replies