PHP code example of juniora / nova-persian-date-field
1. Go to this page and download the library: Download juniora/nova-persian-date-field 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/ */
juniora / nova-persian-date-field example snippets
PersianDate::make('Join Date', 'created_at')
->min('lastmonth')
->max('nextday')
->format('jYYYY-jMM-jDD')
->formats([
'FormField' => 'jYYYY/jMM/jDD HH:mm',
'IndexField' => 'jYYYY/jMM/jDD',
'DetailField' => 'jYYYY/jMM/jDD HH:mm'
])
->humanize()
->type('datetime')
->sortable(),