for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yajra\DataTables\Html\Editor;
class Time extends DateTime
{
/**
* Make a new instance of a field.
*
* @param string $name
* @param string $label
* @return Field|Time
*/
public static function make($name, $label = '')
return parent::make($name, $label)->format('hh:mm a');
}
* Set format to military time (24 hrs).
public function military()
return $this->format('HH:mm');