235

GitHub - sarfraznawaz2005/queryline: QueryLine is a laravel package to show time...

 6 years ago
source link: https://github.com/sarfraznawaz2005/queryline
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Laravel QueryLine

Introduction

QueryLine is a laravel package to show time graph against run queries on a page thereby allowing to see which are slow/fast queries running on the page.

Screenshot

Requirements

  • PHP >= 5.6
  • Laravel 5

Installation

Install via composer

composer require sarfraznawaz2005/queryline

Add Service Provider to config/app.php in providers section

Sarfraznawaz2005\QueryLine\ServiceProvider::class,

Run php artisan vendor:publish to publish package's config file. You should now have queryline.php file published in app/config folder.

Config Options

  • enabled : Enable or disable QueryLine. By default it is disabled. If you are on local environment, you can also just add QUERYLINE=true to env file to enable it.
  • querystring_name : Whatever value for this config is set, you will be able to see all running quries by appending this value in your url as query string. Example: http://www.yourapp.com/someurl?vvv. Default value is vvv.

Related Package

QueryDumper

License

This code is published under the MIT License. This means you can do almost anything with it, as long as the copyright notice and the accompanying license file is left intact.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK