Package Data | |
---|---|
Maintainer Username: | santran |
Maintainer Contact: | santran686@gmail.com (San Tran) |
Package Create Date: | 2016-12-19 |
Package Last Update: | 2018-04-21 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:10:09 |
Package Statistics | |
---|---|
Total Downloads: | 3,761 |
Monthly Downloads: | 70 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Demo:
Install via composer
composer require santran/slownetwork:dev-master
Add Service Provider to config/app.php
in providers
section
SanTran\SlowNetwork\SlowNetworkProvider::class
Publish config file and view file, open console and enter bellow command:
php artisan vendor:publish
Config file 'slownetwork.php'
'enable' => true, // Enable check slow network, Disable set : false
'version' => 1,
'text.taking.long.time' => "The website is taking a long time to load.", // Text show on alert Slow Connect
'text.reload.page' => "You can reload this page by", // Text show on alert Slow Connect
'text.click.here' => "CLICK HERE",// Text show on alert Slow Connect
'text.dismiss' => "[x] dismiss",// Button Text show on alert Slow Connect
'margin.bottom' => 30,
'margin.bottom' => 45,
'width' => 320,// alert Slow Connect width
'height' => 45,// alert Slow Connect height
'color' => "#F0DE7D", // alert Slow Connect background color
'timeout' => 5000, // Set timeout show slow connection wait while page load content
How to use ? Open your layouts file and add js to view.
@include("slownetwork.slownetwork")