andrey-helldar/bad-browser-detect

This package is abandoned and no longer maintained. No replacement package was suggested.

Determine the minimum acceptable version of the browser and notify the user if the version does not match the required version.

v1.3.4 2020-12-30 19:51 UTC

README

Determine the minimum acceptable version of the browser and notify the user if the version does not match the required version.

Laravel Bad Browser Detect

StyleCI Total Downloads Latest Stable Version Latest Unstable Version License

Installation

To get the latest version of Laravel Beautiful Phone, simply require the project using Composer:

composer require andrey-helldar/bad-browser-detect

Instead, you may of course manually update your require block and run composer update if you so choose:

{
    "require": {
        "andrey-helldar/bad-browser-detect": "^1.0"
    }
}

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php:

Helldar\BadBrowser\ServiceProvider::class,

You can also publish the config file to change implementations (ie. interface to specific class):

php artisan vendor:publish --provider="Helldar\BadBrowser\ServiceProvider"

In some cases, we can modify the CSS page styles, so periodically check the relevance of the data. This can also be done using the command:

php artisan vendor:publish --tag=assets

Next, call the command php artisan migrate to create a table in the database.

Using

In the config/bad_browser.php settings file, specify the minimum permissible versions of browsers for the normal operation of your site.

Now, if a user logs in from an outdated browser, it automatically redirects to the page /bad-browser. On this page, the user can click on the link to download a modern browser, or notify the administrator about the version detection error. In this case, the user's user-agent information will be recorded in the database, and an email notification of the incident will be sent to you.

For desktops

you are using an outdated browser - desktop

For tablets

you are using an outdated browser - tablet

For mobiles

you are using an outdated browser - mobile

Copyright and License

Bad Browser Detect was written by Andrey Helldar for the Laravel Framework 5.4 and later, and is released under the MIT License. See the LICENSE file for details.