andrey-helldar / bad-browser-detect
Determine the minimum acceptable version of the browser and notify the user if the version does not match the required version.
Fund package maintenance!
paypal.me/helldar
Installs: 2 015
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^5.6.9|^7.0|^8.0
- illuminate/bus: ^5.4|^6.0|^7.0|^8.0
- illuminate/contracts: ^5.4|^6.0|^7.0|^8.0
- illuminate/database: ^5.4|^6.0|^7.0|^8.0
- illuminate/http: ^5.4|^6.0|^7.0|^8.0
- illuminate/mail: ^5.4|^6.0|^7.0|^8.0
- illuminate/notifications: ^5.4|^6.0|^7.0|^8.0
- illuminate/queue: ^5.4|^6.0|^7.0|^8.0
- jaybizzle/crawler-detect: ^1.2
- jenssegers/agent: ^2.6
- nesbot/carbon: ^1.22|^2.0
Suggests
- symfony/thanks: Give thanks (in the form of a GitHub) to your fellow PHP package maintainers
README
Determine the minimum acceptable version of the browser and notify the user if the version does not match the required version.
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
For tablets
For mobiles
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.