Kanalaetxebarria
Kanalaetxebarria
FFilament
Created by Kanalaetxebarria on 11/14/2024 in #❓┊help
Is "vendor" a reserved name for panels?
Thanks! Finding the docs a bit hard to navigate.
6 replies
FFilament
Created by Kanalaetxebarria on 11/14/2024 in #❓┊help
Is "vendor" a reserved name for panels?
yikes. my bad, that fixed it lol. couldn't really find anything mentioning that on the docs 🤔
6 replies
FFilament
Created by Kanalaetxebarria on 10/16/2024 in #❓┊help
Google maps style text input
Forms\Components\Select::make('search_address')
->live(onBlur: true)
->searchable()
->getSearchResultsUsing(function (string $search) {
$response = Http::get('https://my-api/search', [
'addressdetails' => 1,
'q' => $search,
'format' => 'json',
]);
...

->getOptionLabelUsing(function ($value) { $storedData = session("address_data_{$value}");
return $storedData ? $storedData['display_name'] : null;
})
->afterStateUpdated(function (Get $get, Set $set, $state) { $storedData = session("address_data_{$state}");
Forms\Components\Select::make('search_address')
->live(onBlur: true)
->searchable()
->getSearchResultsUsing(function (string $search) {
$response = Http::get('https://my-api/search', [
'addressdetails' => 1,
'q' => $search,
'format' => 'json',
]);
...

->getOptionLabelUsing(function ($value) { $storedData = session("address_data_{$value}");
return $storedData ? $storedData['display_name'] : null;
})
->afterStateUpdated(function (Get $get, Set $set, $state) { $storedData = session("address_data_{$state}");
17 replies
FFilament
Created by Kanalaetxebarria on 10/16/2024 in #❓┊help
Google maps style text input
I'm a fullstack dev 😂
17 replies
FFilament
Created by Kanalaetxebarria on 10/16/2024 in #❓┊help
Google maps style text input
👆 worked like a charm!
17 replies
FFilament
Created by Kanalaetxebarria on 10/16/2024 in #❓┊help
Google maps style text input
Hey thanks for your reply! I've found this: https://filamentphp.com/docs/3.x/forms/fields/select#returning-custom-search-results - I feel like there might be something here. I'll go down this route for a bit and see if it works, otherwise I'll give your solution a shot!
17 replies
FFilament
Created by Kanalaetxebarria on 4/26/2024 in #❓┊help
Remove page title
Awesome! Returning an empty string from that function did the trick. Thanks!
9 replies
FFilament
Created by Kanalaetxebarria on 4/26/2024 in #❓┊help
Remove page title
Already tried both of those, should've specified on the question I suppose
9 replies
FFilament
Created by Kanalaetxebarria on 4/26/2024 in #❓┊help
Remove page title
not in my case :/ throws an error
Typed property Filament\Navigation\NavigationItem::$label must not be accessed before initialization
Typed property Filament\Navigation\NavigationItem::$label must not be accessed before initialization
9 replies
FFilament
Created by Kanalaetxebarria on 4/26/2024 in #❓┊help
Remove page title
Hey! That just renders out the default name unfortunately :/
9 replies
FFilament
Created by Kanalaetxebarria on 4/12/2024 in #❓┊help
Tailwind Issues even with Custom Theme
Awesome, thanks!!
20 replies
FFilament
Created by Kanalaetxebarria on 4/12/2024 in #❓┊help
Tailwind Issues even with Custom Theme
Ok so I've resorted to this: I have two stylesheets, one for the theme in the panels, one for the main app. Two tailwind config files, one for the panels, one for the main app. The config in the main app includes the tailwind plugin from Flowbite, the one for the panels doesn't. In my main app layout, I'm including the main app.css. In my panel provider, I'm including the theme.css through my vite theme method. Does that setup make sense? Also, do I need to include both the theme.css and app.css in my main vite config?
20 replies
FFilament
Created by Kanalaetxebarria on 4/12/2024 in #❓┊help
Tailwind Issues even with Custom Theme
hmm, what about usage of certain plugins? For example, I'm using Flowbite on the main app, which requires a tailwind plugin. When including that plugin, if I have only one tailwind config, it affects the admin panel, changing opacity in some colors. Would it then make sense to have two separate config files?
20 replies
FFilament
Created by Kanalaetxebarria on 4/12/2024 in #❓┊help
Tailwind Issues even with Custom Theme
Seemed to be the fact that I was pulling in two separate css files. I've moved onto using just 1 tailwind config and the sole theme.css file and it works well now.
20 replies
FFilament
Created by Kanalaetxebarria on 4/12/2024 in #❓┊help
Tailwind Issues even with Custom Theme
maybe the preset is clashing with some default tailwind classes?
20 replies
FFilament
Created by Kanalaetxebarria on 4/12/2024 in #❓┊help
Tailwind Issues even with Custom Theme
yep, followed all the instructions!
20 replies
FFilament
Created by Kanalaetxebarria on 4/12/2024 in #❓┊help
Tailwind Issues even with Custom Theme
Here are the contents:
@import '/vendor/filament/filament/resources/css/theme.css';

@config 'tailwind.config.js';
@import '/vendor/filament/filament/resources/css/theme.css';

@config 'tailwind.config.js';
.
20 replies
FFilament
Created by Kanalaetxebarria on 4/12/2024 in #❓┊help
Tailwind Issues even with Custom Theme
Is it not normal to have this setup? I added a theme later on in the dev process, which basically made me end up with two tailwind config files. I'm using tailwind to style components on the "main" site and components that get rendered in the admin panel. I have around 3 panels.
20 replies
FFilament
Created by Kanalaetxebarria on 11/21/2023 in #❓┊help
Live chat functionality
Thanks! I'm gonna go for sockets out of the box. Better to overkill than having to change stuff in production
4 replies
FFilament
Created by Kanalaetxebarria on 11/18/2023 in #❓┊help
Trigger delete action on custom layout for table
Found the issue: had to include
<x-filament-actions::modals />
<x-filament-actions::modals />
at the bottom of the custom page.
3 replies