You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use Coolsam\FilamentFlatpickr\Forms\Components\Flatpickr;
Flatpickr::make( 'date' )
I encountered a 'class not found' error. Upon inspecting the Flatpickr class file, I found an error on line 502:
public function minDate(Carbon|string|null $minDate|Closure): static
{
$this->minDate = $minDate ? Carbon::parse($minDate) : $minDate;
return $this;
}
How to reproduce the bug
I copied the same format for maxDate and changed it to minDate, and now it's fixed:
public function minDate(Carbon|string|null|Closure $minDate = 'now'): static
{
$this->minDate = $minDate ? Carbon::parse($minDate) : $minDate;
return $this;
}
after i fix the issue. the frontend is working but on the resource the unknown class is still there
What happened?
When your database column type is on time only and using altFormat & altInput will not work it will not auto convert the data value,
it will only work on timestamp with date and time on the value
When using the Flatpickr date picker component to display and select dates with time, there's a discrepancy between the data stored in the database and the output shown to the user.
Database: 2024-05-17 00:00:00
Output: May 17, 2024 8:00 AM
Flatpickr::make('created_at')
->altInput(true)
->altFormat('F d, Y h:i K')
->enableTime(),
Package Version
3.1
PHP Version
8.2
Laravel Version
11
Which operating systems does with happen with?
Windows
Notes
No response
The text was updated successfully, but these errors were encountered:
dharen008
changed the title
[Bug]: After installation issue, Error code on class Flatpickr
[Bug]: After installation issue, Error code on class Flatpickr and couple of things i saw
May 3, 2024
I get the same issue, have you resolved it? Is there any alternative plugin?
I stopped using this plugin because it has many issues that need fixing. The DatePicker->native(false) already handles many flatpicker functions, so I decided to stick with the default Filament DatePicker.
What happened?
I encountered a 'class not found' error. Upon inspecting the Flatpickr class file, I found an error on line 502:
How to reproduce the bug
I copied the same format for maxDate and changed it to minDate, and now it's fixed:
after i fix the issue. the frontend is working but on the resource the unknown class is still there
What happened?
it will only work on timestamp with date and time on the value
What happened?
What happened?
Database: 2024-05-17 00:00:00
Output: May 17, 2024 8:00 AM
Package Version
3.1
PHP Version
8.2
Laravel Version
11
Which operating systems does with happen with?
Windows
Notes
No response
The text was updated successfully, but these errors were encountered: