Simple Laravel 5 package to dump all running queries on the page.

Overview

Abandoned:

Use this package instead


Laravel QueryDumper

laravel 5.1 laravel 5.2 laravel 5.3 downloads

Introduction

Simple Laravel 5 package to dump all running queries on the page. If it's SELECT query, it will also show EXPLAIN information against it.

Screenshot

Main Window

Requirements

  • PHP >= 5.6
  • Laravel 5 (tested on Laravel 5.1, 5.2, 5.3 and 5.4)

Installation

Install via composer

composer require sarfraznawaz2005/querydumper

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

Sarfraznawaz2005\QueryDumper\QueryDumperServiceProvider::class,

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

Config Options

  • enabled : Enable or disable QueryDumper. By default it is disabled. If you are on local environment, you can also just add QUERYDUMPER=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?qqq. Default value is qqq.
  • format_sql : If true, it will also format shown SQL queries. Default false.
  • same_page : If true, it will dump queries on current page you are on. If it affects your layout, you can set this to false and be able to view dumped queries on a page available at url http://yoursite.com/querydumper/dump. In this case, first visit the page you want to see queries of by appending ?querystring_name value there and then visit querydumper/dump route to see quries for your last visited page. Default true.

Related Package

QueryLine

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.

You might also like...
Durable workflow engine that allows users to write long running persistent distributed workflows in PHP powered by Laravel queues

Durable workflow engine that allows users to write long running persistent distributed workflows (orchestrations) in PHP powered by Laravel queues. Inspired by Temporal and Azure Durable Functions.

This package aims to help you standardize all your API responses in a simple and structured way.

Laravel API Response This package aims to help you standardize all your API responses in a simple and structured way. By default, the stucture of the

A simple profile management page for Filament. ✨
A simple profile management page for Filament. ✨

A simple profile page for Filament. This package provides a very simple Profile page that allows the current user to manage their name, email address

A simple job posting application using PHP with an Admin Panel. Register, Login and create the job in apnel. The job gets posted on index page.

Jobee A simple job posting application using PHP with an Admin Panel. Register, Login and create the job in apnel. The job gets posted on index page.

This is a plugin written in the PHP programming language and running on the PocketMine platform that works stably on the API 3.25.0 platform. It helps to liven up your server with Tags!
This is a plugin written in the PHP programming language and running on the PocketMine platform that works stably on the API 3.25.0 platform. It helps to liven up your server with Tags!

General This is a plugin written in the PHP programming language and running on the PocketMine platform that works stably on the API 3.25.0 platform.

Gallium is a TALL stack starter kit offering a robust set of options enabling you to get up and running in a snap.

Very short description of the package This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention o

A new way of Running Tinker. Simplify the Web Artisan's workflow.
A new way of Running Tinker. Simplify the Web Artisan's workflow.

Tinkerun A new way of Running Tinker. Simplify the Web Artisan's workflow. inspired by Tinkerwell Download links Github Releases 🗒 If you are using V

This Package helps you in laravel application to log all desired activity for each request from request entry point to generate response at a single snapshot.

Laravel Scenario Logger This Package helps you in laravel application to log all desired activity for each request from request entry point to generat

This package extends Laravel's FormBuilder to include some (soon all) HTML5 elements

HTML5 Forms for Laravel This package extends Laravel's FormBuilder to include some (soon all) HTML5 elements. How to Install Install the braunson/lara

Comments
  • laravel 5.4 can't listen event

    laravel 5.4 can't listen event "kernel.handled"

    // Fired when laravel is done sending response. We use this event so that our
    // response is not repeated
    Event::listen('kernel.handled', function () {
        echo implode("", self::$queries);
    });
    

    When i use querydumper with laravel 5.4,i found i can't listen "kernel.handled".

    opened by luyuqiang 1
Owner
Sarfraz Ahmed
A self-taught programmer from Karachi, Pakistan mainly involved in PHP, MySQL, HTML/CSS, JavaScript for around 10+ years now.
Sarfraz Ahmed
Laravel breeze is a PHP Laravel library that provides Authentication features such as Login page , Register, Reset Password and creating all Sessions Required.

About Laravel breeze To give you a head start building your new Laravel application, we are happy to offer authentication and application starter kits

null 3 Jul 30, 2022
a Laravel package help you to execute more effective databases queries.

Laravel Query Helper Laravel Query Helper was developed for laravel 7.2+ to help you optimizing sql queries, this package will contain all advanced sq

karam mustafa 9 Jul 26, 2022
Need some filters? This package is based on the Repository Design Pattern to let you create specific queries easily.

DevMakerLab/Laravel-Filters Need some filters? This package is based on the Repository Design Pattern to let you create specific queries easily. Insta

DevMakerLab 19 Feb 20, 2022
This package provides a Logs page that allows you to view your Laravel log files in a simple UI

A simplistics log viewer for your Filament apps. This package provides a Logs page that allows you to view your Laravel log files in a simple UI. Inst

Ryan Chandler 9 Sep 17, 2022
Laravel Query Helper was developed for laravel 7.2+ to help you optimize sql queries

Laravel Query Helper Laravel Query Helper was developed for laravel 7.2+ to help you optimize sql queries, this package will contain all advanced SQL

Syrian Open Source 15 Nov 20, 2022
The missing laravel helper that allows you to inspect your eloquent queries with it's bind parameters

Laravel Query Inspector The missing laravel helper that allows you to ispect your eloquent queries with it's bind parameters Motivations Let's say you

Mouad ZIANI 59 Sep 25, 2022
Fullstack komponents to write Forms, Queries and Menus in Laravel

kompo.io • Documentation • Demos • Twitter kompo/kompo kompo/kompo is a library of Fullstack Komponents to help you write forms, queries and menus in

Bass El Hachem 107 Dec 5, 2022
Trait for Laravel testing to count/assert about database queries

counts_database_queries Trait for Laravel testing to count/assert about database queries Installing composer require ohffs/counts-database-queries-tra

null 1 Feb 23, 2022
Log executed Laravel SQL queries and their line number and more

A lightweight laravel package for logging executed SQL queries, line number and more

Md.Harun-Ur-Rashid 31 Dec 21, 2022
A modern solution for running Laravel Horizon with a CRON-based supervisor.

A modern solution for running Laravel Horizon with a cron-based supervisor This Laravel package automatically checks every three minutes if your Larav

Ralph J. Smit 31 Dec 9, 2022