Join 25,000+ Laravel Developers and join the free Laravel Newsletter
Laravel Packages / June 16, 2014

Laravel User Agent and Mobile Detection

This is a Laravel package that utilizes the Mobile Detect PHP Class under the hood:

Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

Nice syntax too:

Agent::is('Windows');
Agent::isNexus();
Agent::isMobile();

This appeared first on Laravel News

Visit Resource →

Laravel News Partners

Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.