ChesterS
URL not working in repeater action?
For some reason, using the
url(...)
method doeson't work. The generated $wire.target=
is empty and as a result throws a console error
Am i doing something wrong? The URL is obviously correct since it works when I manually redirect()
to it.2 replies
Vite manifest not found when registering custom asset and deploying to production
I have a weird issue when trying to deploy to production.
I have a custom asset loaded using
However, during composer's
post-autoload-dump
the following commands are executed
both of which fail because the Vite manifest hasn't been generated yet.
The manifest is generated when I ran npm run build
but I can't do that because this fails if I haven't installed the composer dependencies yet.
So I'm in this weird catch-22 where the composer step fails because I can't build the Vite manifest, and I can't build the Vite manifest because the composer step fails.
Removing the FillamentAsset::register...
code solves the issue but it's obviously not a solution so I wonder if I'm missing something.
I use Forge/Envoyer for the deployments so most steps are vanilla Envoyer stuff. All of it worked untill I wanted to load a custom asset.
The manifest is not commited into the repo BTW. Am I supposed to commit it?34 replies
Enable Echo.js without breaking Hot Reload
Ok I'm at my wit's end here... I know this is probably not strictly Filament related, but maybe there's a JS wizard here that can help
I'm trying to enable broadcasting. Here are the relevant files
As you can see, most of the code is boilerplate. It works when I run
npm run build
, but when I run npm run dev
I get the following error.
in firefox and
inside the echo.js
file
Has anyone run into something similar? Any suggestions? Googling for this error doesn't get me anything useful.5 replies
Load custom component inside action modal
Ok I think I'm missing something obvious here, but is there a way to load a custom Livewire component inside a modal action?
Here's an example of what I've tried
but it doesn't work (the modal is empty)
This is what my component looks like
9 replies
Create action with relation throws error
Sorry for the vague title
I have the following action
When I click on the button, I get the following error
This is the exact same form I use in the
UserResource
and it works when creating a new user, but for some reason doesn't work when doing it outside the resource. I tried adding
and some other things but nothing worked. What am I doing wrong?5 replies
Refresh Filament component from a custom one
I have the following infolist
Is there a way to trigger the infolist to update from inside
MyCustomComponent
?
I can listen for an event inside the my filament ViewRecord
class, but I'm not sure how to trigger the actual update/refresh. I'd rather avoid a full page reload.
Ideally, I would have the same behaviour actions have (eg only the infolist is updated)5 replies
toggleable() not working with Split?
I have the following table columns
However, the column is always visible. When I click on the on the checkbox to toggle its visibility, the only thing that changes is that the option disappears from the sorting dropdown.
If I remove the
Split::make()
part and only have the columns, it works as expected
Is toggleable()
not compatible with Split
or am I doing something wrong?8 replies
Apply filters button + Filters as a slide-over
2 questions really
1) I remember there was a PR that added an
Apply
button to filters so the table was only filtered when you clicked the button and not when the filters where changed. Do I remember correctly?
2) How do I show the table filters in a slide-over? I set the layout: FiltersLayout::Modal
but how do I change it to a slide over?7 replies
Custom `target` attribute in link Action
Not sure if this is an IBKAC but I can't set a custom
target
on a link Action.
Here is the code
For some reason, the target
attribute does not appear but anything else seems to work.
Am I missing something? Is the target
attribute filtered for some reason?
(I don't want to use openUrlInNewTab()
since I don't want to open it in a new tab)4 replies
`visible()` doesn't resolve record
I have the following Table
Which throws the following error
Am I missing something? It doesn't matter what type of column I use BTW, when I pass a closure to the
visible
method, it doesn't pass he record as expected.
Everything is up-to-date (LW 3.3, Filament 3.1.23)7 replies
File upload fails the first time but works afterwards when in a slide-over
Ok I have this weird issue. Here is my setup
This is the custom action I'm using to show a slide-over on a table. It contains a custom component that has a form with a file upload.
this is the wrapper
Here is the form
Most of it is boilerplate, and it works fine when I use it in a page (I use the same wrapper). However, when I use this in a slide over as a custom action, the first time I try to upload an image, it fails and I get the following console error
At first I thought it might have been an issue with the table polling, but I've disabled it and the issue is still there.
If I try to upload something again, it works as expected. I know this is a weird issue, so any ideas are welcome.
7 replies
Remove/Disable record action on table
Is there a way to disable/remove the default click action on a table row?
Clicking on a table takes you to the form. Is there a way to disable this?
I've tried things like
->recordAction(false)
or ->recordAction(null)
but it doesn't work.4 replies
Access to table records in resource
Is there a way to get a list of all the records from the table?
When using the tables with a Livewire component it was easy since you could do something like
But with resources, all methods are static and I'm not sure how to achieve the same result.
Any tips welcome.
2 replies
Filament + app layout
How does Filament decide which layout to use?
I've followed the setup instructions and and have a
resources/views/components/layouts/app.blade.php
file, but I'm pretty sure it's not using it 🤔
Here is my layout (it's mostly vanilla with some changes)
5 replies