This package allows to get mysql statement that query builder in laravel made it for debugging purposes.
$query = \App\Models\User::where('id', 1)->verified();
dump(getMYSQLStatement($query));
// select * from `users` where `id` = 1 and `email_verified_at` is not null
You can install the package via composer:
composer require --dev ahmedhelalahmed/get-mysql-statement-laravel
Thank you for considering contributing to ahmedhelalahmed/get-MYSQL-statement-laravel
If you discover a security vulnerability within ahmedhelalahmed/laravel-greeting , please send an e-mail to Ahmed Helal via [email protected]. All security vulnerabilities will be promptly addressed.
ahmedhelalahmed/laravel-greeting is open-sourced software licensed under the MIT license.