以下を使用したい:ライブラリフォルダのホームズ:
// 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
このエラーも表示されます: Holmes ライブラリ ファイルの 25 行目で参照によって変数のみを渡す必要があります
私は手続き上の混乱から移行しようとしています;)