Esempio n. 1
0
/**
 * Use in FilterAfter Log Functionalities
 * @return string
 */
function logGetDeviceName()
{
    if (Agent::is('Android')) {
        $device = Agent::device();
        $version = Agent::version($device);
        return $device . ' ' . $version;
    } elseif (Agent::is('iPhone')) {
        $device = Agent::device();
        $version = Agent::version($device);
        return $device . ' ' . $version;
    } else {
        $browser = Agent::browser();
        $version = Agent::version($browser);
        return $browser . ' ' . $version;
    }
}