@if ($agent->isMobile()) Show mobile stuff... @endif //Follow this link for full metod // https://github.com/jenssegers/agent