Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Shelob9 / NoIE.php
Last active May 4, 2022 17:04
A Laravel middleware to prevent Internet Explorer from accessing route(s)
<?php
namespace App\Http\Middleware;
use Closure;
use UserAgentParser\Exception\NoResultFoundException;
use UserAgentParser\Provider\WhichBrowser;
/**
* Class DeviceDetect