code16/sharp
Code-driven CMS framework for Laravel (PHP 8.3+/Laravel 11+). Build admin/CMS sections with a clean UI and strong DX: CRUD with validation, search/sort/filter, bulk or custom commands, and authorization—no front-end code required, data-agnostic.
Class: Code16\Sharp\Form\Fields\SharpFormDateField
setHasDate($hasDate = true)Let the user enter a date (default is true).
setHasTime($hasTime = true)Let the user enter a time (default is false).
setMondayFirst(bool $mondayFirst = true)Put monday as the first day in the calendar (default: false).
setSundayFirst(bool $sundayFirst = true)Put sunday as the first day in the calendar (default: true).
setMinTime(int $hours, int $minutes = 0)setMaxTime(int $hours, int $minutes = 0)If set, the time-chooser will be constraint as defined.
setStepTime(int $step)Set a time step (in minutes) for the time-chooser. Default is 30.
toFront: accept either a Carbon instance, a DateTime instance of a "Y-m-d H:i:s" string.fromFront: return a "Y-m-d H:i:s" string.How can I help you explore Laravel packages today?