PHP code example of alvleont / calendar-input
1. Go to this page and download the library: Download alvleont/calendar-input 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/ */
alvleont / calendar-input example snippets
use Alvleont\CalendarInput\CalendarInput;
class ProductResource
{
public static function form(Form $form): Form
{
return $form->schema([
CalendarInput::make('date')
->name('Calendar')
->minDate('2025-06-01') //You can use the date you want, or null (optional method)
->maxDate('2029-09-30') //You can use the date you want, or null (optional method)
->disabledDates([]) //Optional Method
->disabled() //In case It'll be disabled or for the view page.
]);
}
}
bash
php artisan vendor:publish --tag="calendar-input-views"