ahmedhelalahmed/get-mysql-statement-laravel

Get MYSQL statement from query builder in laravel helper

dev-main 2021-06-26 00:07 UTC

This package is auto-updated.

Last update: 2024-09-26 07:07:09 UTC


README

This package allows to get mysql statement that query builder in laravel made it for debugging purposes.

Basic usage

Dump simple query:

    $query = \App\Models\User::where('id', 1)->verified();
    dump(getMYSQLStatement($query));
    // select * from `users` where `id` = 1 and `email_verified_at` is not null

Installation

You can install the package via composer:

composer require --dev ahmedhelalahmed/get-mysql-statement-laravel

Contributing

Thank you for considering contributing to ahmedhelalahmed/get-MYSQL-statement-laravel

Security

If you discover a security vulnerability within ahmedhelalahmed/laravel-greeting , please send an e-mail to Ahmed Helal via ahmed.helal.online@gmail.com. All security vulnerabilities will be promptly addressed.

Credits

License

ahmedhelalahmed/laravel-greeting is open-sourced software licensed under the MIT license.