johnnie_littleshoes
Is there anyway to reload RelationManager Owner page with Spa mode?
for other noobs like me that find this thread, this is how I applied it to my case:
I have a Resource with a RelationManager. The Resource's ViewPage has a HeaderAction that updates the Resource's status.
Based on this status, the RelationManager should also change, but it normally takes a page reload to see those changes.
To trigger the page reload, I added
$this->dispatch('status-updated');
to the HeaderAction in the ViewPage.
Then back in the RelationManager, I added #[On('status-updated')]
right before the class ExampleRelationManager extends RelationManager
and after the imports.
You gotta import use Livewire\Attributes\On;
as well.8 replies
Read only mode
I have the same idea, like this:
one panel per department in my company, where they go about their tasks, plus one "Overview" panel where every user can see all the data but not create, update, delete in any way. I'm using #bezhansalleh-shield, but as of now it has no multi-panel capabilities. So I got to edit every resource in that panel to remove table actions, page actions, etc, just so "Overview" can remain read-only
5 replies
ImportColumn relationship nullable
or https://filamentphp.com/docs/3.x/actions/prebuilt-actions/import#customizing-how-a-column-is-filled-into-a-record
->fillRecordUsing( //code here)
6 replies
How to download failed rows?
maybe this can help with your case?
https://filamentphp.com/docs/3.x/actions/prebuilt-actions/import#using-a-custom-user-model
5 replies