Kanalaetxebarria
Is "vendor" a reserved name for panels?
I've just created a new panel called "Vendor". However, the route /vendor/login does not show up. Visiting /vendor redirects me to /login and fails. When running route:list, I can see all the routes for vendor (vendor/logout, vendor/{resourceName}) but not vendor/login.
Anybody had something like this happen to them?
6 replies
Google maps style text input
Hi, I'm trying to make a TextInput in a form make a call to a Nominatim (OSM) api that I've setup myself. I need to type an address into the input and the possible results should load below in a Select input. Ideally, they'd be together in the same input. I'm not entirely sure how I could do this with filament. Any ideas?
17 replies
When to use a relation manager?
Hi everyone,
I’m curious about the best practices for when to use a relation manager instead of a resource in Filament. For instance, if a model has a
BelongsToMany
relationship (e.g., with a Tag
model), would it make sense to use a relation manager in that case? Or is it common practice to use both a relation manager and a resource for the same relationship?
Any guidance on this would be appreciated!
Thanks.7 replies
Tailwind Issues even with Custom Theme
Hi,
I'm having some issues with tailwind where certain classes are not being picked up. I've setup a custom theme and followed all the instructions and still can't get it to work right.
The issue is only happening on components that are under the /resources/views/filament/... it's also happening in a component that lives in that dir, but includes some livewire components living under /resources/views/livewire/...
Here's my main tailwind config:
Finally, my theme tailwind config:
Am I missing anything? Thanks!
20 replies
Dynamically pass properties to @entangle directive
Hi, I know this isn't filament related, but I was wondering if there is a way to dynamically pass my properties to the @entangle directive?
Example properties:
&
Expected output:
The way I'm doing it now actually echoes out the correct values, but the binding seems to not work very well. Thanks in advanced!
2 replies
Live chat functionality
Hi, I need to implement a live chat functionality on my filament app.
I've made a Livewire page/component to display the chat tab. The chat should be from user to user, not general (never general). I'm wondering if I should go about implementing this using Pusher & Laravel Echo or if I should just make http based messaging.
Have any of you implemented something like this? What would you suggest? The chat should be able to scale to some degree (definitely less than the Pusher free tier though).
I suppose this is more of a Laravel question in general, but as a solo dev it's hard to tell the what best approach is at times.
Any input is appreciated!
4 replies
Trigger delete action on custom layout for table
Hi, I'm trying to render a resource that contains only images as an image gallery. I've made a custom ListRecords view, where I'm displaying the records in my custom layout:
I'm trying to get the delete action to work. I've copied what I see on the markup from the other resource's delete action button. I see that I'm triggering a request through the network when clicking the delete button on my custom layout, but I don't get any kind of delete confirmation modal and the record doesn't delete.
I've tried passing the record id, the key without + 1, read through the vendor files but can't seem to figure it out.
How can I delete the records?
Thanks!
3 replies
Ways to manage registration in production
I need to manage registration to the admin panel in production, so that not everybody can go ahead and register. I'm wondering if there's some kind of standard way to handle this? I was thinking something like a secret key -kinda like Laravel's maintenance mode bypass. Any ideas?
7 replies
Missing tenant parameter on routes
Hi, I'm trying to setup a profile page that lives within the application layout. In order to do this, I'm extending the EditProfile class, and trying to set the layout as the index, instead of the simple one. However, as soon as I try to do this, I get the error: Missing required parameter for [Route: filament.admin.pages.dashboard] [URI: admin/{tenant}] [Missing parameter: tenant].
Any ideas? I had the same issue when trying to setup the Spotlight package.
28 replies
Styling issues in Livewire components
After upgrading to V3, I'm having styling issues in a custom Livewire component that's added into a filament page. I've added the filament preset to my tailwind config, but I still have this issue. Some of the tailwind classes work, and some don't. Can't seem to figure out why, any ideas?
4 replies
Update tenants based on Session value
Hi, I'm trying to update my tenants based on a value that's been put on my Session. Here's an example:
I'm updating that value based on a select element being handled by Livewire. Short example:
However, I find I can't reactively update the tenant list. Any ideas?
2 replies
Active resource
Hi, I'm working on a small project management tool. In this tool, you'll be able to make "Clients" each of which can have multiple "Projects." I've implemented tenancy for the Clients model, enabling the creation of Clients and then Projects within each Client's scope.
I'm not sure on how to implement a dynamic tenancy structure, where the active tenant is initially the "Client," and then a specific "Project." The objective is to first select the desired Client, then choosing one of their Projects, and then manage the resources. Could anybody help with some insights as to how to achieve this?
4 replies
mutateFormDataUsing not working on CreateAction
Hi, I can't get mutateFormDataUsing to work and mutate my data in a header CreateAction. I saw somebody else had the same issue, but it didn't seem to have been resolved. I've also tried "using", but also not working well. Any tips?
7 replies
Adding a render hook to the sidebar V3
Hi, I used to be able to add a select element on my sidebar by registering a render hook on my AppServiceProvider like so:
but now in V3 I'm not sure how to go about this. Can't seem to find it on the new docs either. Does anybody know how it's done now?
5 replies
Passing data to custom page through table action.
Hi, I'm trying to pass the current record to a custom page on a table action, however I can't seem to get the data. Here's my setup:
Layer resource, table actions:
Draw custom page blade view:
Error: .
I can't find much on the docs. Any clues as to what might be going wrong?
14 replies