Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Bootstrap Datetimepicker

Bootstrap Datetimepicker Laravel Package

eonasdan/bootstrap-datetimepicker

A Bootstrap-based date and time picker for jQuery and Moment.js, offering flexible formatting, localization, min/max dates, disabled dates, and keyboard/mouse controls. Easy to integrate with Bootstrap forms and supports multiple picker views and options.

View on GitHub
Deep Wiki
Context7

This project is no longer active or supported.

Frequently asked questions about Bootstrap Datetimepicker
How do I integrate this datetime picker into a Laravel Blade form?
Include the jQuery and datetimepicker JS/CSS via CDN or Laravel’s asset pipelines (e.g., `mix.js`). Initialize it on an `<input>` with `data-provide='datetimepicker'` or via JavaScript. Ensure jQuery is loaded before the picker script. For CSRF protection, use Laravel’s `@csrf` directive in Blade forms.
Does this package support Laravel’s Carbon for backend date validation?
No, this is a frontend-only component. You’ll need to manually validate dates on the backend using Laravel’s `Request::validate()` with rules like `'date' => 'required|date'`. For Carbon integration, parse the input string (e.g., `$date = Carbon::parse($request->date)`) before processing.
Will this work with Laravel 11+ and Bootstrap 5?
The package is unmaintained and relies on Bootstrap 3/4. While it *might* work with Bootstrap 5 via CSS overrides, test thoroughly. For Laravel 11+, consider alternatives like **Tempus Dominus** (Bootstrap 5-compatible) or **Flatpickr** (no jQuery).
Can I use this in a Laravel SPA with Vite or Inertia.js?
Yes, but you’ll need to import jQuery and the datetimepicker JS/CSS into your Vite config. Initialize the picker in your frontend JS after mounting the component. Note: jQuery may conflict with modern SPAs; evaluate lighter alternatives like **Alpine.js + Flatpickr** if performance is critical.
How do I handle localization (e.g., RTL languages) with this picker?
The picker supports localization via Moment.js plugins (e.g., `moment.locale('ar')`). For RTL, add custom CSS to reverse picker direction. Test thoroughly, as built-in RTL support is limited. Alternatives like **Flatpickr** offer better RTL/accessibility out of the box.
Is there a Laravel service provider or Eloquent integration for this package?
No, this is a frontend-only UI component. For backend integration, manually bind form data to Eloquent models or API requests. Use Laravel’s `FormRequest` validation to ensure consistency between frontend and backend date formats.
What are the security risks of using this unmaintained package?
The last release was in 2025 with no activity, posing risks like unpatched jQuery vulnerabilities (e.g., XSS) or Bootstrap compatibility breaks. Mitigate by: 1) Forking the repo, 2) Using a CDN with Subresource Integrity (SRI), or 3) Switching to **Tempus Dominus** or **Flatpickr** (actively maintained).
How do I disable specific dates or set min/max limits in Laravel?
Use the picker’s `minDate`, `maxDate`, or `disabledDates` options in JavaScript. For dynamic limits (e.g., based on Laravel data), fetch them via API and pass to the picker’s config. Example: `$('#datetimepicker').datetimepicker({ minDate: new Date('{{ $minDate }}') })`.
What’s a lightweight alternative to this package for Laravel?
For jQuery-free solutions, try **Flatpickr** (modern, no dependencies) or **Pikaday** (lightweight). If using Laravel Nova, leverage its built-in datetime picker. For Alpine.js/Vue/React apps, use framework-specific date pickers (e.g., **Vue Datepicker** or **React Datepicker**).
How do I test this datetime picker in Laravel’s frontend tests (e.g., Pest or Dusk)?
For frontend tests, use JavaScript assertions (e.g., `expect($('.datetimepicker')).toBeVisible()`). For Dusk, trigger the picker via `->click()` and verify UI changes. Test backend validation separately by submitting invalid dates and checking Laravel’s validation responses.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
graham-campbell/flysystem
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi