Welcome aboard! We are happy you are here and wish you good net-raft!
<?php
Route::get('/myroutes',function(){
function isMobile() {
return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
}
if(isMobile()){
$device = "mobile device";
}
else {
$device = "desktop";
}
return $device;
});
The most helpful LARAVEL solutions
hostname laravelLARAVEL Click to see more ... 760 52