Steve_OH
Steve_OH
FFilament
Created by Steve_OH on 7/31/2024 in #❓┊help
No way to Mutate form data for created record using an action button on external resource
Well, I can confirm this does work! :D. Thank you for your help!
\Filament\Actions\CreateAction::make('create')
->model(Task::class)
->icon('heroicon-o-plus')
->tooltip('Create Task')
->slideOver()
->modalHeading('Create a New Task')
->fillForm([
'users_id' => auth()->id(),
'visible' => auth()->id(),
'responsible' => auth()->id(),
])
->form(fn (Form $form) => auth()->user()->isAdmin ? TaskAdminResource::form($form) : TaskResource::form($form))
\Filament\Actions\CreateAction::make('create')
->model(Task::class)
->icon('heroicon-o-plus')
->tooltip('Create Task')
->slideOver()
->modalHeading('Create a New Task')
->fillForm([
'users_id' => auth()->id(),
'visible' => auth()->id(),
'responsible' => auth()->id(),
])
->form(fn (Form $form) => auth()->user()->isAdmin ? TaskAdminResource::form($form) : TaskResource::form($form))
9 replies
FFilament
Created by Steve_OH on 7/31/2024 in #❓┊help
No way to Mutate form data for created record using an action button on external resource
I guess I was using the wrong prompts, I made the error of consulting with ChatGPT and spent an hour being given false information, which guided my documentation journey. Thanks for clarifying and I appreciate your dedication, filament is fantastic!
9 replies
FFilament
Created by Steve_OH on 7/31/2024 in #❓┊help
No way to Mutate form data for created record using an action button on external resource
Literally exactly what I was looking for! Will try it out! Searched for hours for something like this and could not find it
9 replies
FFilament
Created by Steve_OH on 7/26/2024 in #❓┊help
Incorporating an infolist inside of an edit view modal?
For sure, I plan to use them a lot from here on!
11 replies
FFilament
Created by Steve_OH on 7/26/2024 in #❓┊help
Incorporating an infolist inside of an edit view modal?
Ok, I got it working. Ended up using the Livewire::make method, which is fantastic and really needs some coverage in the docs
11 replies
FFilament
Created by Steve_OH on 7/26/2024 in #❓┊help
Incorporating an infolist inside of an edit view modal?
Fantastic, thank you! Can you provide a resource for this functionality? I've created a few livewire components, but haven't found a reliable way to incorporate them into forms
11 replies
FFilament
Created by Steve_OH on 7/26/2024 in #❓┊help
Incorporating an infolist inside of an edit view modal?
The use case here is that comments can be left by users. In the context provided, any comment posted could be edited by other users since the only option I can think of would be a repeater field with some kind of readonly functionality
11 replies
FFilament
Created by mohdaftab on 7/16/2024 in #❓┊help
Multi tenancy sub-domain redirection problem
Nice! Congrats
26 replies
FFilament
Created by mohdaftab on 7/16/2024 in #❓┊help
Multi tenancy sub-domain redirection problem
I'm not sure I follow, this should impact the user that is currently running the page, not someone else. Share your code if you don't mind
26 replies
FFilament
Created by mohdaftab on 7/16/2024 in #❓┊help
Multi tenancy sub-domain redirection problem
Any luck?
26 replies
FFilament
Created by mohdaftab on 7/16/2024 in #❓┊help
Multi tenancy sub-domain redirection problem
Of course I have some other things going on here that you probably don't need. my tenancy is based on their assigned organization and I have 3 panels, one is separated on whether they are that organization's client or not. The subdomain in my case is only used for that third tier
26 replies
FFilament
Created by mohdaftab on 7/16/2024 in #❓┊help
Multi tenancy sub-domain redirection problem
Here's the file
26 replies
FFilament
Created by mohdaftab on 7/16/2024 in #❓┊help
Multi tenancy sub-domain redirection problem
Yeah sorry been busy, will post later
26 replies
FFilament
Created by mohdaftab on 7/16/2024 in #❓┊help
Multi tenancy sub-domain redirection problem
I use a similar system and have middleware for the redirect. I don’t see anything in this middleware for the tenancy redirection though. It must be in your panel configuration
26 replies
FFilament
Created by mohdaftab on 7/16/2024 in #❓┊help
Multi tenancy sub-domain redirection problem
What are you using to redirect them? Is it a middleware?
26 replies
FFilament
Created by Steve_OH on 7/11/2024 in #❓┊help
Sending updates to livewire elements on database change
Thank you for the comment, sorry for the delay, been a very busy week! I figured it out. I was already emitting updates, but it turns out my render function was not passing the updated variable (see below) in the livewire function. Adding it there fixed it immediately. Thanks for your feedback!
public function render()
{
return view('livewire.cart', [
'cart' => $this->getCart(), // THIS WAS WHERE THE
'itemCount' => $this->itemCount // ISSUE WAS
]);
}
public function render()
{
return view('livewire.cart', [
'cart' => $this->getCart(), // THIS WAS WHERE THE
'itemCount' => $this->itemCount // ISSUE WAS
]);
}
7 replies
FFilament
Created by Steve_OH on 7/11/2024 in #❓┊help
Sending updates to livewire elements on database change
I’ve attempted that, was not successful. Can you provide a good resource to look at for this? My efforts don’t seem to be successful
7 replies
FFilament
Created by Steve_OH on 6/29/2024 in #❓┊help
Unique record within tenancy rather than across the board?
I'm wondering if it's possible to take the data from maybe a select field? Like, if I select the organization I can then have the filter applied to that organization rather than having to find a convoluted solution involving impersonation or logging in as another user
6 replies
FFilament
Created by Steve_OH on 6/29/2024 in #❓┊help
Unique record within tenancy rather than across the board?
The only issue is that I currently have the ability to help my tenants create records as part of development and would like the scope to be for the record rather than my own tenancy. I can’t create records on behalf of other tenants if the unique is based on my tenancy rather than theirs as there may be a match on theirs I’m not aware of
6 replies
FFilament
Created by Steve_OH on 5/1/2024 in #❓┊help
Any way to modify charts to only return a subset of data?
Solved, thank you very much!
18 replies