Multiple day picker

I need a date selector which is able to select multiple days. how to do it with filament? ive searched and tried ->multiple() but doesnt seem to work
Method Filament\Forms\Components\DatePicker::multiple does not exist.
Method Filament\Forms\Components\DatePicker::multiple does not exist.
19 Replies
ericmp #2
ericmp #2OP15mo ago
ive found this one: https://v2.filamentphp.com/plugins/flatpickr but id like to know if there is any alternatives
Filament
Flatpickr by Samson Maosa - Plugins - Filament
The Popular Date/time Picker, Flatpickr, as a Filament Form Field
ericmp #2
ericmp #2OP15mo ago
plus: not using admin panel
Vp
Vp15mo ago
I dont think there is no build in for multiple date, but you can make start and end, use two date picker else plugin
ericmp #2
ericmp #2OP15mo ago
the thing is that i need multiple dates, not only 2 and with the plugin i found, it doesnt work in modals. it crashes that is why im searching for an alternative or something otherwise, ill have to move it all into a form component... :/
Vp
Vp15mo ago
Wait.. haha
Vp
Vp15mo ago
GitHub
GitHub - malzariey/filament-daterangepicker-filter
Contribute to malzariey/filament-daterangepicker-filter development by creating an account on GitHub.
Vp
Vp15mo ago
Check this
ericmp #2
ericmp #2OP15mo ago
i was trying to find it too xd now checking if v2 cant find it here in v2 - https://filamentphp.com/plugins but in v3 yes searched "date range"
Vp
Vp15mo ago
#malzariey-daterangefilter ask here about v2
ericmp #2
ericmp #2OP15mo ago
ill asume it works in v2
No description
Vp
Vp15mo ago
Haha.. wait, be patience, everyone have their own time
MohamedSabil83
MohamedSabil8315mo ago
It's for v2 and v3. You can see that in the composer file
ericmp #2
ericmp #2OP15mo ago
when installing it:
Error

Class "Filament\Support\Facades\FilamentAsset" not found

at vendor/malzariey/filament-daterangepicker-filter/src/FilamentDaterangepickerFilterServiceProvider.php:26
22▕ }
23▕
24▕ public function packageBooted(): void
25▕ {
➜ 26▕ FilamentAsset::register($this->getAssets(), package: $this->getAssetPackageName());
27▕ }
28▕
29▕ protected function getAssetPackageName(): ?string
30▕ {

+8 vendor frames
9 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(Malzariey\FilamentDaterangepickerFilter\FilamentDaterangepickerFilterServiceProvider))

+5 vendor frames
15 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Error

Class "Filament\Support\Facades\FilamentAsset" not found

at vendor/malzariey/filament-daterangepicker-filter/src/FilamentDaterangepickerFilterServiceProvider.php:26
22▕ }
23▕
24▕ public function packageBooted(): void
25▕ {
➜ 26▕ FilamentAsset::register($this->getAssets(), package: $this->getAssetPackageName());
27▕ }
28▕
29▕ protected function getAssetPackageName(): ?string
30▕ {

+8 vendor frames
9 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(Malzariey\FilamentDaterangepickerFilter\FilamentDaterangepickerFilterServiceProvider))

+5 vendor frames
15 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
(composer require malzariey/filament-daterangepicker-filter) maybe this is in the admin panel, which i dont have
awcodes
awcodes15mo ago
FilamentAsset is a v3 thing. You'll need to install the appropriate version of the plugin for v2
Vp
Vp15mo ago
You need to install v1.3.2, because v2 is for filament v3.. check release https://github.com/malzariey/filament-daterangepicker-filter/releases/tag/2.0
GitHub
Release v2.0 · malzariey/filament-daterangepicker-filter
What's Changed Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in #24 Add support for filament v3 and French translation by @lepresk in #26 Add Dutch translation by @meniv-nl...
ericmp #2
ericmp #2OP15mo ago
🙏 now lets see if works in modals hehe
ericmp #2
ericmp #2OP15mo ago
nah, doesnt
No description
ericmp #2
ericmp #2OP15mo ago
i guess ill have move it ALL into a full page form well thanks for the help, appreciate ur time all! ill close the issue i was using this one... but if i set it visible/invisible it breaks... at the start, i set it as invisible. when user does something in the form, if a condition is met i make it visible then crashes if i set it visible at the start, yes, works. but the user shouldnt see it at the start.. 🤔
Want results from more Discord servers?
Add your server