Laurens
Laurens
FFilament
Created by Laurens on 8/23/2024 in #❓┊help
Check if Livewire request came from Filament
Made it also more generic for checking the other panels while at it I guess
Request::macro('isPanel', function (string $panel) {
return Filament::getCurrentPanel()?->getId() === $panel;
});
Request::macro('isPanel', function (string $panel) {
return Filament::getCurrentPanel()?->getId() === $panel;
});
3 replies
FFilament
Created by Laurens on 8/23/2024 in #❓┊help
Check if Livewire request came from Filament
Actually, I'm using tenancy so got the idea to check if the current tenant could be retrieved during the Livewire request. This made me test out the panel helpers and this seems to work perfectly for both views and livewire requests:
Request::macro('adminPanel', function () {
return Filament::getCurrentPanel()?->getId() === 'admin';
});
Request::macro('adminPanel', function () {
return Filament::getCurrentPanel()?->getId() === 'admin';
});
This approach also doesn't rely on the filament.admin.* routing check 🙂
3 replies
FFilament
Created by Laurens on 6/17/2024 in #❓┊help
Custom widget property being set after widget reload in action
As a workaround I'm currently dispatching a refresh event. Not 100% clean since the table gets queried twice technically though.
3 replies
FFilament
Created by Laurens on 4/10/2024 in #❓┊help
Sidebar navigation order is different in French
Thanks that fixed it. 👍
5 replies
FFilament
Created by Laurens on 3/5/2024 in #❓┊help
Disable resource form while editing but enable relation managers?
Update: we've manually disabled each field in the form for now. Not sure if there is a better way. 🤔
6 replies
FFilament
Created by Laurens on 3/1/2024 in #❓┊help
Overwrite table widget label
That's it! perfect thanks 🙂
5 replies
FFilament
Created by Laurens on 12/4/2023 in #❓┊help
Cannot use accessor for record title in global search
So for now I've went with a virtual column instead as a workaround
5 replies
FFilament
Created by Laurens on 12/4/2023 in #❓┊help
Cannot use accessor for record title in global search
I've tried so 🙂
This is the code I'm using currently. Using fullName has the same result.
This is the code I'm using currently. Using fullName has the same result.
5 replies
FFilament
Created by Laurens on 11/20/2023 in #❓┊help
Keep create action modal open on success with feedback
This is on Filament v3.0.96 & Laravel v10.32.1 🙂
23 replies
FFilament
Created by Laurens on 11/20/2023 in #❓┊help
Keep create action modal open on success with feedback
Seems to be no longer working on V3 then 😦 We also had quite a few translation issues which worked on V2 but all broke in V3. Will probably have to figure out custom components then like plugins I guess
23 replies
FFilament
Created by Laurens on 11/20/2023 in #❓┊help
Keep create action modal open on success with feedback
Mine sits in getHeaderActions of a Manage page inside a Simple resource
23 replies
FFilament
Created by Laurens on 11/20/2023 in #❓┊help
Keep create action modal open on success with feedback
Did it work for you locally? Because here I'm always only getting the dump from the action, never from after validation 🤔
23 replies
FFilament
Created by Laurens on 11/20/2023 in #❓┊help
Keep create action modal open on success with feedback
Same result in a default resource, so it's not because of the simple resource at least 🤔
23 replies
FFilament
Created by Laurens on 11/20/2023 in #❓┊help
Keep create action modal open on success with feedback
if I change the dd in action to 'action', its the string and not the array of data 🙂
23 replies
FFilament
Created by Laurens on 11/20/2023 in #❓┊help
Keep create action modal open on success with feedback
The data being dumped there for me is from the action though, afterValidation still doesn't run
23 replies
FFilament
Created by Laurens on 11/20/2023 in #❓┊help
Keep create action modal open on success with feedback
This is on Filament v3.0.96 & Laravel v10.32.1
23 replies
FFilament
Created by Laurens on 11/20/2023 in #❓┊help
Keep create action modal open on success with feedback
with the code above the Action::make() just closes without an exception
23 replies
FFilament
Created by Laurens on 11/20/2023 in #❓┊help
Keep create action modal open on success with feedback
there isn't a difference due to this being inside the Manage page of a "simple" resource right?
23 replies
FFilament
Created by Laurens on 11/20/2023 in #❓┊help
Keep create action modal open on success with feedback
AfterStepUpdated doesn't seem to exist here. I've found afterValidation but it doesn't seem to get called. What could be happening here?
Actions\Action::make('create')
->steps([
Step::make('Name')
->description('Give the category a unique name')
->schema([
TextInput::make('name')->required(),
])
->columns()
->afterValidation(function ($data) {
dd($data);
}),
])
Actions\Action::make('create')
->steps([
Step::make('Name')
->description('Give the category a unique name')
->schema([
TextInput::make('name')->required(),
])
->columns()
->afterValidation(function ($data) {
dd($data);
}),
])
23 replies
FFilament
Created by Laurens on 11/20/2023 in #❓┊help
Keep create action modal open on success with feedback
Should the final step then show feedback? As chaining ->using(function (array $data) after the final step also just closes the wizard 🤔
23 replies