Grégoire
Grégoire
FFilament
Created by pjb on 2/14/2025 in #❓┊help
Full-page ManageRelatedRecords Form? (Nova equivalent)
Thanks for your answer!
5 replies
FFilament
Created by pjb on 2/14/2025 in #❓┊help
Full-page ManageRelatedRecords Form? (Nova equivalent)
I have the exact same question, @pjb. Have you found a good solution?
5 replies
FFilament
Created by Grégoire on 2/13/2025 in #❓┊help
Optimizing file upload for large files avoid slow move on save
On S3 buckets there is a visibility per file. From my tests earlier:
// The video file has a `private` visibility no matter what you set in the `visibility` method.
FileUpload::make('video_path')
->disk(config('filesystems.default')) // DigitalOcean S3 Space
->visibility('public')
->directory('videos')
->moveFiles();

// Removing the `moveFiles` method will make the visibility work as expected but is slow on save.
FileUpload::make('video_path')
->disk(config('filesystems.default')) // DigitalOcean S3 Space
->visibility('public')
->directory('videos');
// The video file has a `private` visibility no matter what you set in the `visibility` method.
FileUpload::make('video_path')
->disk(config('filesystems.default')) // DigitalOcean S3 Space
->visibility('public')
->directory('videos')
->moveFiles();

// Removing the `moveFiles` method will make the visibility work as expected but is slow on save.
FileUpload::make('video_path')
->disk(config('filesystems.default')) // DigitalOcean S3 Space
->visibility('public')
->directory('videos');
8 replies
FFilament
Created by Grégoire on 2/13/2025 in #❓┊help
Optimizing file upload for large files avoid slow move on save
So, I have tested and indeed it is much faster. However, adding moveFiles always set the file to visibility private even when ->visibility('public') is set.
8 replies
FFilament
Created by Grégoire on 2/13/2025 in #❓┊help
Optimizing file upload for large files avoid slow move on save
Oh, I spent some time on the doc but missed it. Thanks a lot, will have a look
8 replies
FFilament
Created by Jomatom on 11/2/2024 in #❓┊help
Store order (in session?) in custom Repeater
Thanks for sharing your solution, I was looking for something similar and wanted to say that posting solutions is helpful!
8 replies
FFilament
Created by giuszeppe on 7/11/2024 in #❓┊help
ImageColumn not setting src attributes
I had this problem once and it was actually due to the disc not being set to public when uploading. Might be worth checking where that image is, which disc is used in the env file, etc.
4 replies
FFilament
Created by Nima on 9/18/2024 in #❓┊help
Custom grid structure in filament
Why not just use the Grid component? https://filamentphp.com/docs/3.x/forms/layout/grid
20 replies
FFilament
Created by Grégoire on 8/12/2024 in #❓┊help
Looping through multiple Livewire components containing Filament Action crashes Firefox/Safari
Nice solution @Hugo Myb. I have reverted back to Wire Elements so I am not using your fix for the moment, but I will definitely keep it in mind!
11 replies
FFilament
Created by Grégoire on 8/12/2024 in #❓┊help
Looping through multiple Livewire components containing Filament Action crashes Firefox/Safari
There are some discussions on #7746, but it has been going on for a while.
11 replies
FFilament
Created by Grégoire on 8/12/2024 in #❓┊help
Looping through multiple Livewire components containing Filament Action crashes Firefox/Safari
Same on my end. I failed to find a solution and went back to dynamic modals with wire elements and setting up a form with inside a classic Livewire component. Not great because that means maintaining two logics at the same time.
11 replies
FFilament
Created by Grégoire on 8/11/2024 in #❓┊help
Handling dispatch events with named parameters in Filament Action
Never mind! After changing the file several times, I forgot to put back implements HasActions, HasForms, which caused the problem. Thanks for your time both of you! ❤️
9 replies
FFilament
Created by Grégoire on 8/12/2024 in #❓┊help
Looping through multiple Livewire components containing Filament Action crashes Firefox/Safari
One workaround I've found is to move the logic to the parent component instead of keeping it within the lazy-loaded dropdown content. Then, you can trigger the Filament action with wire:click="$parent.mountAction('test')". This approach ensures the action is only loaded once rather than multiple times. I tested it, and it works well. However, what I don't like about this solution is that the logic is now separated from the dropdown content. This means that every time I use the dropdown, I have to remember to include the action logic in the parent component (hopping there is one). Additionally, if I want to use the dropdown as a standalone component (on a page with just one option), it won't function properly.
11 replies
FFilament
Created by Alnuaimi on 8/11/2024 in #❓┊help
How to add mentions on the Filament RichEditor field?
Take a look at this minimal example using Alpine.JS: https://stackblitz.com/edit/vitejs-vite-lsgy44?file=src%2Fsuggestions.js
5 replies
FFilament
Created by Grégoire on 8/11/2024 in #❓┊help
Handling dispatch events with named parameters in Filament Action
Yes, of course! The trace is attached. I also took the time to create a minimal repo. Just go to /test to reproduce it. Let me know if I can do anything to assist.
9 replies
FFilament
Created by Grégoire on 8/11/2024 in #❓┊help
Handling dispatch events with named parameters in Filament Action
To be honest, I am slowly moving away from wire elements to filament elements, but I have to work with a bit of both at the moment.
9 replies
FFilament
Created by Grégoire on 8/11/2024 in #❓┊help
Handling dispatch events with named parameters in Filament Action
That's a great idea! And thanks for all your work with Filament. Quick question, how would you deal with component injection inside a Livewire component? According to the documentation I just need to pass Component $livewire. I end up with something like:
Filament\Forms\ComponentContainer::make(): Argument #1 ($livewire) must be of type Filament\Forms\Contracts\HasForms, App\Livewire\Header\Dropdown\SwitchTeam given
Am I missing something here?
class JoinTeamAction extends Action
{
protected function setUp(): void
{
parent::setUp();

$this->action(fn(Component $livewire) => $livewire->dispatch('slide-over.open', component: 'settings.team.switch-team-slide-over'));
}
}

// ...

class SwitchTeam extends Component
{
use InteractsWithActions;
use InteractsWithForms;

public function joinTeam(): Action
{
return JoinTeamAction::make();
}
}
class JoinTeamAction extends Action
{
protected function setUp(): void
{
parent::setUp();

$this->action(fn(Component $livewire) => $livewire->dispatch('slide-over.open', component: 'settings.team.switch-team-slide-over'));
}
}

// ...

class SwitchTeam extends Component
{
use InteractsWithActions;
use InteractsWithForms;

public function joinTeam(): Action
{
return JoinTeamAction::make();
}
}
9 replies
FFilament
Created by Alnuaimi on 8/11/2024 in #❓┊help
How to add mentions on the Filament RichEditor field?
If you're using Adam Weston's great TipTap plugin, you can install the "mention" extension. Then you just need to parse the input and notify the person using your existing logic.
5 replies
FFilament
Created by Grégoire on 7/22/2024 in #❓┊help
Issues with dynamic checkboxlist state in multi-step wizard form
Thank you for taking the time to investigate, I have sent you a small donation 🙂
22 replies
FFilament
Created by Grégoire on 7/22/2024 in #❓┊help
Issues with dynamic checkboxlist state in multi-step wizard form
That's exactly what I will do, loop through the enum, generate empty checkboxlists and then update them when needed.
22 replies