awcodes
awcodes
FFilament
Created by Jefferson Botelho on 2/21/2025 in #❓┊help
Create a page dynamically
It just data in a database and it’s still just laravel so it all still just works, just have to keep context in mind.
7 replies
FFilament
Created by Jefferson Botelho on 2/21/2025 in #❓┊help
Create a page dynamically
Ie, we have a filament resource for managing a page model. But for the non filament part of the site we have controllers and routes to handle their display.
7 replies
FFilament
Created by Jefferson Botelho on 2/21/2025 in #❓┊help
Create a page dynamically
Ah, that not specific to filament. It’s still just laravel so nothing is stopping you from using a catchall route to display the page based on route model binding.
7 replies
FFilament
Created by Dmitriy on 2/21/2025 in #❓┊help
TextColumn throwing an exception for the empty ENUM value
There might also be an ->enum() modifier on the text column too, but not 100% on that.
8 replies
FFilament
Created by Dmitriy on 2/21/2025 in #❓┊help
TextColumn throwing an exception for the empty ENUM value
Hmm, I would expect that to work.
8 replies
FFilament
Created by Dmitriy on 2/21/2025 in #❓┊help
TextColumn throwing an exception for the empty ENUM value
Or provide a default in the enum for getLabel() to return an empty string.
8 replies
FFilament
Created by Dmitriy on 2/21/2025 in #❓┊help
TextColumn throwing an exception for the empty ENUM value
Ideally, a field based on an enum wouldn’t be an empty string. But you can use ->getStateUsing() on the text column to check if it’s empty and return early.
8 replies
FFilament
Created by Jefferson Botelho on 2/21/2025 in #❓┊help
Create a page dynamically
Do you mean a dynamic page in the panel?
7 replies
FFilament
Created by Señor Nikola on 2/21/2025 in #❓┊help
Custom Action within TablesRenderHook::TOOLBAR_SEARCH_BEFORE
I don’t think it’s documented but actions also support ->alpineClickHandler() that you can use instead.
6 replies
FFilament
Created by Señor Nikola on 2/21/2025 in #❓┊help
Custom Action within TablesRenderHook::TOOLBAR_SEARCH_BEFORE
Check the code in dev tools, it might have livewire click handler on it which could be conflicting with the js.
6 replies
FFilament
Created by Señor Nikola on 2/21/2025 in #❓┊help
Custom Action within TablesRenderHook::TOOLBAR_SEARCH_BEFORE
What is the code of your livewire component? My guess is that you haven’t name the method correctly for it to get auto registered as an action.
6 replies
FFilament
Created by charlie on 2/21/2025 in #❓┊help
Would it be hard to move a complete Filament project to Multi-tenancy ?
I’d start by checking all the plugins you are using to see if they support tenancy or not if it’s relevant to the plugin. The filament stuff shouldn’t be too difficult if you are planning on using filaments built in tenancy features. If you are going to use a 3rd party tenancy package, it can be done, but several people have had issues that weren’t so easy to solve.
4 replies
FFilament
Created by TheEvilTomat0 on 2/20/2025 in #❓┊help
awcodes tiptap editor
The extensions all get merged so anything in custom with the same key will replace anything in core.
15 replies
FFilament
Created by TheEvilTomat0 on 2/20/2025 in #❓┊help
awcodes tiptap editor
No, you just need to extend Tiptap’s table like you have done. But when you add it to the extensions array you need to call it Table instead off addClass
15 replies
FFilament
Created by TheEvilTomat0 on 2/20/2025 in #❓┊help
awcodes tiptap editor
Ok. Based on what you shared then. I think the problem is that you need to call your extension Table as well so that when it gets registered with the plugin it will override the default table that’s already included.
15 replies
FFilament
Created by TheEvilTomat0 on 2/20/2025 in #❓┊help
awcodes tiptap editor
If it’s all tables do you even need class on them? You could target them with a selector higher up the tree. Something like ‘.tiptap table’
15 replies
FFilament
Created by Akiyama on 2/21/2025 in #❓┊help
Delete button
It makes sense, but in that case it sounds like a custom filament theme and css makes more sense.
7 replies
FFilament
Created by Akiyama on 2/21/2025 in #❓┊help
Delete button
Ie, what doesn’t the default delete action do that you need?
7 replies
FFilament
Created by Akiyama on 2/21/2025 in #❓┊help
Delete button
What is custom about the delete action?
7 replies
FFilament
Created by br1 on 2/19/2025 in #❓┊help
change position of global search
The linked article is about moving the search to another place entirely. If you want to keep it in the topbar but center it then you will need to use a custom theme and override the css for the topbar.
6 replies