PHP code example of deguiric / laravel-mobile-detect

1. Go to this page and download the library: Download deguiric/laravel-mobile-detect library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

deguiric / laravel-mobile-detect example snippets


Riverskies\Laravel\MobileDetect\MobileDetectServiceProvider::class

'MobileDetect' => Riverskies\Laravel\MobileDetect\Facades\MobileDetect::class

@desktop
    <img src="/path/to/high-definition/image"/>
@elsedesktop
    <img src="/path/to/handheld-optimised/image"/>
@enddesktop