Skrypt
Skrypt
FFilament
Created by Skrypt on 7/16/2024 in #❓┊help
Blade Component - Button Group
I need some sleep hah 😄
13 replies
FFilament
Created by Skrypt on 7/16/2024 in #❓┊help
Blade Component - Button Group
No description
13 replies
FFilament
Created by Skrypt on 7/16/2024 in #❓┊help
Blade Component - Button Group
I created a completely barebones layout and a simple route that just renders an empty page with that button group and it still doesn't work correctly.
13 replies
FFilament
Created by Skrypt on 7/16/2024 in #❓┊help
Blade Component - Button Group
This is weird. Apart from including @filamentStyles after @livewireStyles in the head and @filamentScripts after @livewireScripts in the body and using the filament preset in my tailwind config, there's nothing else I should do right?
13 replies
FFilament
Created by Skrypt on 7/16/2024 in #❓┊help
Blade Component - Button Group
No it's a plain Livewire component
13 replies
FFilament
Created by Skrypt on 7/16/2024 in #❓┊help
Blade Component - Button Group
No description
13 replies
FFilament
Created by Skrypt on 7/16/2024 in #❓┊help
Blade Component - Button Group
No description
13 replies
FFilament
Created by Skrypt on 6/11/2024 in #❓┊help
Filament Blade Components in non-filament frontend
Wow... Next level JS autocomplete... not 😄 in tailwind.config.js I had preset: [...] instead of presets: [...]
2 replies
FFilament
Created by Skrypt on 5/7/2024 in #❓┊help
Locale Prefix
np, thanks anyways 🙂
9 replies
FFilament
Created by Skrypt on 5/7/2024 in #❓┊help
Locale Prefix
Nah that doesn't work either. Then it probably just thinks that the locale is admin. We use https://github.com/codezero-be/laravel-localized-routes on the front-facing part of the app and are trying to make it compatible with the filament panels and I'm having a hard time doing so. 😄 The package itself does a lot of magic to make it work it seems
9 replies
FFilament
Created by Skrypt on 5/7/2024 in #❓┊help
Locale Prefix
Thanks, I did that too. But the thing is, for the default locale (such as en) I need it to work without the prefix, so /admin will be english but /de/admin will be german.
9 replies
FFilament
Created by Skrypt on 4/29/2024 in #❓┊help
Dynamic actions with modal
So I currently fixed it by rendering the modals manually using the Blade Component Library of Filament and then overriding each action by adding a alpineClickHandler to it, to call my manually created modals. If anyone knows a better solution, I'd be happy to hear it 🙂
3 replies
FFilament
Created by Skrypt on 4/29/2024 in #❓┊help
Dynamic actions with modal
Basically currently I have a method which returns a dynamically created array of Actions, it can be any amount of Actions.
I group them inside an Action Group and then render it using a for loop. They get rendered, but modals don't work anymore.
3 replies
FFilament
Created by Skrypt on 4/28/2024 in #❓┊help
Navigation Builder Parent Item / Child Items
Okay, so I fixed it by accident. Turns out it works only if isActiveWhen is correctly set up. 🙂
2 replies
FFilament
Created by Skrypt on 4/27/2024 in #❓┊help
Action Modal on Simple Pages?
No worries, thanks anyways. 🙂 For other people who might stumble upon something similar, I think I finally found the issue, I had to pass a closure to the action method.
->action('doSomething')
->action('doSomething')
didn't work, but
->action(fn() => $this->doSomething())
->action(fn() => $this->doSomething())
did. I'm pretty sure I tried that before already though, so I have no idea why it now works. 😄
9 replies
FFilament
Created by Skrypt on 4/27/2024 in #❓┊help
Action Modal on Simple Pages?
I did add the <x-filament-actions::modals> component if you mean that. It's still not doing anything though. It just simply runs the action instead of first confirming via a modal.
9 replies
FFilament
Created by lazydog on 3/8/2024 in #❓┊help
Testing with Tenancy
Also, how would you go about testing a "Simple Resource" (where there is only a ManageRecords page)? How would you test the CreateAction modals and test whether the record is created? EDIT: Okay, not sure if it's the best way, but this works (sorry example is in PHPUnit, I find Pest utterly confusing 😄 )
Livewire::test(ManageUsers::class)
->mountAction('create')
->setActionData([
'name' => 'Test',
])
->callAction('create')
->assertHasNoFormComponentActionErrors();

$this->assertDatabaseHas(Record::class, [
'name' => 'Test',
]);
Livewire::test(ManageUsers::class)
->mountAction('create')
->setActionData([
'name' => 'Test',
])
->callAction('create')
->assertHasNoFormComponentActionErrors();

$this->assertDatabaseHas(Record::class, [
'name' => 'Test',
]);
8 replies
FFilament
Created by lazydog on 3/8/2024 in #❓┊help
Testing with Tenancy
8 replies
FFilament
Created by lazydog on 3/8/2024 in #❓┊help
Testing with Tenancy
Hi, have you found a solution? I have the same problem
8 replies
FFilament
Created by Skrypt on 1/24/2024 in #❓┊help
Single login page for multiple panels
Thanks, I created and tried setting each login page for every panel to that page, which worked but resulted in different routes for each panel (such as /admin/login and /user/login), despite using the same class (so at least this solved the code duplication). Turns out the best way so far was to disable all authorization pages (login, registration, etc) in every other panel except the default one and instead override them using closures, so for example in the AdminPanelProvider and any other panel provider I would do: ...->login(fn() => redirect()->route('filament.core.auth.login')) Thanks a lot guys 🙂
5 replies