app/Utils/Util.php
/**
     * Converts time in business format to mysql format
     *
     * @param string $time
     * @return strin
     */
Converts time in business format to mysql format
@param string $time
@return strin
Converts time in business format to mysql format @param string $time @return strin
public function format_time($time)
    {
        $time_format = 'H:i';
        if (session('business.time_format') == 12) {
            $time_format = 'h:i A';
        }
        return !empty($time) ? \Carbon::createFromFormat('H:i:s', $time)->format($time_format) : null;
    }
public function format_time ( $ time ) { $ time_format = 'H:i' ; if ( session ( 'business.time_format' ) == 12 ) { $ time_format = 'h:i A' ; } return ! empty ( $ time ) ? \ Carbon :: createFromFormat ( 'H:i:s' , $ time ) -> format ( $ time_format ) : null ; }
Converts time in business format to mysql format
 @param string $time
 @return strin
Converts time in business format to mysql format @param string $time @return strin