PHP code example of asmit / fila-calendar
1. Go to this page and download the library: Download asmit/fila-calendar 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/ */
asmit / fila-calendar example snippets
use Asmit\FilaCalendar\Forms\Components\CalendarInput;
use Asmit\FilaCalendar\Support\CalendarMode;
CalendarInput::make('booking')
->mode(CalendarMode::MultiRange)
->months(12)
->calendarColumns(['sm' => 2, 'lg' => 3, 'xl' => 4])
->reservedDates(fn (): array => Booking::query()->pluck('date')->all())
->withToday()
->locale('ja');
use Asmit\FilaCalendar\Infolists\Components\CalendarEntry;
use Asmit\FilaCalendar\Support\CalendarMode;
CalendarEntry::make('booking')
->mode(CalendarMode::MultiRange)
->months(3)
->calendarColumns(3);