Laravel User Agent and Mobile Detection
Published on by Eric L. Barnes
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();
Eric is the creator of Laravel News and has been covering Laravel since 2012.