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 uf_time($time)
    {
        $time_format = 'H:i';
        if (session('business.time_format') == 12) {
            $time_format = 'h:i A';
        }
        return !empty($time_format) ? \Carbon::createFromFormat($time_format, $time)->format('H:i') : null;
    }
public function uf_time ( $ time ) { $ time_format = 'H:i' ; if ( session ( 'business.time_format' ) == 12 ) { $ time_format = 'h:i A' ; } return ! empty ( $ time_format ) ? \ Carbon :: createFromFormat ( $ time_format , $ time ) -> format ( 'H:i' ) : 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