1. Go to this page and download the library: Download pasksak/laravel-flatpickr library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pasksak / laravel-flatpickr example snippets
return [
/**
* The url to be used to serve css file.
* If null, it will use the one shipped with package.
*/
'css_url' => env('FLATPICKR_CSS_URL', null),
/**
* The url to be used to serve js file.
* If null, it will use the one shipped with package.
*/
'js_url' => env('FLATPICKR_JS_URL', null),
/**
* Determines if the styles shipped with the package should be used.
* Setting it to false will remove the styling for the component.
* The flatpickr css will be untouched.
*/
'use_style' => env('FLATPICKR_USE_STYLE', true),
];