3
我想用下面的: 霍姆斯在庫文件夾:Laravel:如何包含圖書館?
// Determine if request is from a mobile device
Holmes::is_mobile(); // returns boolean
// Determine the type of device
$device = Holmes::get_device(); // returns string
// Determine if a specific device is being used
// Any supported device below is acceptable
// lowercased no spaces, obviously. <3
Holmes::is_ipad();
Holmes::is_blackberrytablet();
我在哪裏放置什麼?
在路線中:?
查看:
@if(Holmes::is_iphone())
{{ 'this is an iphone' }}
@endif
我也得到這個錯誤: 只有變量應參照上線25日在霍姆斯庫文件
我想從程序混亂過境傳遞;)
>我在哪裏放置什麼? 它必須取決於你想做什麼,不能沒有進一步的解釋。 – crynobone
例如我想顯示/不顯示在我的家index.blade.php取決於設備的區域如果移動顯示X如果桌面顯示Y – dflow