Open suvires opened 3 years ago
Nowadays to save the device type i have to do:
if($agent->isDesktop()) { $scan->device_type = 'Desktop'; } elseif ($agent->isPhone()) { $scan->device_type = 'Phone'; } elseif ($agent->isTablet()) { $scan->device_type = 'Tablet'; }
It would be usefull a magic method device type.
Thanks!
Nowadays to save the device type i have to do:
It would be usefull a magic method device type.
Thanks!