rajul
filament panel authentication middleware
I have two panels : admin and dashboard. I want to add filament panel auth middleware to certain routes . currently I am using like this :
But it is redirecting to admin login page instead of dashboard login page? Is there a way to force it to redirect to dash login in case of user is unauthenticated. Thank you!
2 replies
How to dispatch filament form data using blade $dispatch method
When I am trying to
$dispatch
an event to send filament form data, it is not sending updated form data. However If use dispatch inside livewire component I am able to get updated data. But by calling dispatch in livewire component will result in server call. I am trying to avoid server call.
This is not send updated data:
However this is sending correct data:
Please let me know if there is a way to send updated form data from blade file itself to avoid server roundtrip.4 replies
How to get active filters on table inside list resource page widget.
I am trying to get list of active filters applied on table inside a widget. My current approach is
but this is returning all filters available. How to get only active filters?
4 replies
Position of element in Dependent Select Field Option
I have a
status
field in a Model, where I want to show specfic set of options in Select Field based on value of status
I find that position of element is not correct after selecting and updating a form. Let me explain it with example:
If current status
is triage and user selects 'in_progress' and save form. then Form shows the correct new options in Select (in_progress, complete, triage) but current selected option it shows is 'complete' whereas its current state is 'in_progress'
Can someone please have a look at following code, If I am doing something wrong.
3 replies
slow page loading when cache is false
On a fresh laravel 10 + filament 2 , I observed a very slow loading of admin page when I set
‘cache’ => false in config/view.php
I’m not sure if it’s expected behaviour or not I can file a reproduction repository of its not a expected behaviour. Thanks.
5 replies
show content in table only when getTableQuery() return data
I have created a filament page and inserted a Filament form as well as a table. purpose of form is to collect user input and after user submit form, I pass those input to getTableQuery() to make a custom query, this flow works fine but by default it shows all entries in table.
How can I make table to do not show content till form is submitted?
3 replies
how to refresh EditRecord Page after submit a Action::model component
I am created a entry in relation field of table by using a Action submit. It will add a new entry in reference table. How to refresh this EditRecord page so that that entry would be visible in relation-Manger tab.
2 replies
how to mutate data in record in relation in form
I have a userResource for User table which has a metadata table with its foreign-key.
I have added form fields of metadata with Users fields in one form like this:
I want to mutate "experience" field of metadata before filling this form.
I tried
mutateRecordDataUsing
, but it is not working, even dd($data)
is not triggering.
How do I do this?10 replies
In select filer 0 is giving all results
For following SelectFilter, If I select 0 then all results are coming in table , whereas 1 is working fine. Schema for
Please let me know if I am doing something wring here?
verified
is : $table->boolean('verified')->nullable();
Please let me know if I am doing something wring here?
4 replies
custom filter on foreign table not working
I have user table having gender and one foreign table with 'metadata_id" key which points to metadata.
metadata contains category
I created filter like this in UserResource.
If I select only category filter then it is working fine but If I select both gender and category filter, no users get return in table.
I have confirmeed that there is data in my table to have few common users for both filters.
Am I doing something wrong here?
4 replies