jjo63
User maintenance flow - default in Filament
Just came across this - https://github.com/joaopaulolndev/filament-edit-profile - looks like it might be a nice packaging of some of what I was seeking.
12 replies
Custom page - invoking "standard" resource features
Am closing this now as I have redesigned my solution after watching some Laracast video content. Issue I have to solve is now I think much simpler - I started a new discussion for this entitled "Infolists / Action button"
8 replies
Custom page - invoking "standard" resource features
Thanks for the pointers - been away on other tasks for a couple of days but am now back on this.
So I have code that seems syntactically right but doesn't do as I want. In essence, I click a button in the blade defined thus:
<div>
<x-filament::button label="View" wire:click="slideObjAction({{ $result->id }})" />
<x-filament-actions::modals />
</div>
Then the function slideObjAction is defined in my controller
public function slideObjAction($id): Action
{
$record = ArchObject::find($id);
$infolist = ArchObjectResource::infolist(Infolist::make()->record($record));
log::info('About to return view');
return Action::make('view')
->label('View Details')
->action(function () use ($infolist) {
// Fetch the model using the ID
$this->infolist($infolist);
})
->slideOver();
}
When I click the button "nothing happens" and I don't see anything in laravel.log nor in the browser console to help diagnose the problem.
Any ideas?8 replies
Custom page - invoking "standard" resource features
OK thanks - how would i see what args have to be passed to the infolist() function - is that documented somewhere or is it a case of digging out the core filament code and habving a look at it?
8 replies
Livewire / Custom Page issue / skipRender not functioning?
Thanks - in fact I think I have misunderstood something AND have therefore mis-represented my problem - there are some oddities in the UI but skipRender() is functioning.
Going to close this request and open another if (armed with my additional discovery this morning) i still have an issue to resolve.
Appreciate the input (oh and yes, there is to come some DB updates but I'm very confident in that area, it was the fundamentals of the UI/UX that I wanted to get nailed first).
4 replies
Building own "resource" to run within the Filament UI
This block of code
public function render(): View
{
return view('filament.pages.custom-search');
}
with this piece of code, I was presented at runtime with a completely unstyled form. When I commented out this function, my form was displayed within the context and styling of the rest of the Filament app.
I think this serves as a warning again to take care when using AI to generate code, especially when the language or framework is unfamiliar as it took me quite some time to unravel why I had no styling.
10 replies
Building own "resource" to run within the Filament UI
Thanks for the suggestion, not getting too far with this (own lack of knowledge probably though I know that AI-generated code can be spot-on sometimes and lead you down many rabbit holes when it isn't 🙂 Cannot judge if it's my problem or the suggested code's problem but am hitting many obstacles. Will feedback when I have it unravelled.
10 replies
Building own "resource" to run within the Filament UI
Thanks, of course that's exactly where I needed to start.
My objective is to present a (text) search field which, upon submission, generates a query which will be executed within Supabase and renders a result set. The default search and result presentation of Filament tables isn't what I want so do need to code something for myself. Any pointers to a suitable "primer' video (or doc) for this? I do realise this is outside of Filament so am chancing my arm here on requesting a small amount of off-topic help 🙂
10 replies
Adding a record count alongside a navigation link
Is this the resolution to the request discussed here https://github.com/filamentphp/filament/discussions/7221 ?
10 replies
Edit form without fields
Thanks, that looks like exactly what I need - thanks for the pointer - particularly the heading of this section
https://filamentphp.com/docs/3.x/panels/resources/viewing-records#using-an-infolist-instead-of-a-disabled-form
6 replies