All Projects → MouadZIANI → laravel-query-inspector

MouadZIANI / laravel-query-inspector

Licence: MIT license
The missing laravel helper that allows you to inspect your eloquent queries with it's bind parameters

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-query-inspector

Datatable
Modular server side Datatable package for Laravel 5 for various client side table plugins
Stars: ✭ 52 (-11.86%)
Mutual labels:  eloquent, query-builder
query-filter
🔍 Database/Eloquent Query Builder filters for Laravel
Stars: ✭ 69 (+16.95%)
Mutual labels:  eloquent, query-builder
laravel-arangodb
ArangoDB driver for Laravel
Stars: ✭ 43 (-27.12%)
Mutual labels:  eloquent, query-builder
Eloquent Builder
Provides an advanced filter for Laravel or Lumen model.
Stars: ✭ 264 (+347.46%)
Mutual labels:  eloquent, query-builder
Elasticsearch
The missing elasticsearch ORM for Laravel, Lumen and Native php applications
Stars: ✭ 375 (+535.59%)
Mutual labels:  eloquent, query-builder
Pecee Pixie
Lightweight, easy-to-use querybuilder for PHP inspired by Laravel Eloquent - but with less overhead.
Stars: ✭ 19 (-67.8%)
Mutual labels:  eloquent, query-builder
Laravel Eloquent Query Cache
Adding cache on your Laravel Eloquent queries' results is now a breeze.
Stars: ✭ 529 (+796.61%)
Mutual labels:  eloquent, query-builder
Querybuilderparser
A simple to use query builder for the jQuery QueryBuilder plugin for use with Laravel.
Stars: ✭ 126 (+113.56%)
Mutual labels:  eloquent, query-builder
laravel-attribute-observer
Observe (and react to) attribute changes made on Eloquent models.
Stars: ✭ 59 (+0%)
Mutual labels:  eloquent
buildsqlx
Go database query builder library for PostgreSQL
Stars: ✭ 92 (+55.93%)
Mutual labels:  query-builder
laravel-design-pattern-generator
Laravel Design Pattern Generator (api generator)
Stars: ✭ 1 (-98.31%)
Mutual labels:  query-builder
laratools
A collection of useful everyday tools for Laravel
Stars: ✭ 17 (-71.19%)
Mutual labels:  eloquent
query builder
Compose Ecto queries without effort
Stars: ✭ 56 (-5.08%)
Mutual labels:  query-builder
laravel-nestedupdater
Package for allowing updating of nested Eloquent model relations using a single nested data array.
Stars: ✭ 19 (-67.8%)
Mutual labels:  eloquent
slim-boilerplate
A PHP boilerplate,for a fast API prototyping based on Slim Framework, for start projects with Eloquent ORM, Validation, Auth (JWT), Repositories and Transformers ready
Stars: ✭ 58 (-1.69%)
Mutual labels:  eloquent
eloquence
Eloquence provides a cache on top of Eloquent that prevents multiple models being created for a single database row using the Identity Map design pattern.
Stars: ✭ 18 (-69.49%)
Mutual labels:  eloquent
Bouncer
Eloquent roles and abilities.
Stars: ✭ 2,763 (+4583.05%)
Mutual labels:  eloquent
flepper
Flepper is a library to aid in database interaction. 🐸
Stars: ✭ 60 (+1.69%)
Mutual labels:  query-builder
plug
A collection of pluggable traits for Eloquent (Laravel) models
Stars: ✭ 13 (-77.97%)
Mutual labels:  eloquent
Zeko-SQL-Builder
Zeko SQL Builder is a high-performance lightweight SQL query library written for Kotlin language
Stars: ✭ 87 (+47.46%)
Mutual labels:  query-builder

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 want to get the generated sql query from an eloquent query, by default in Laravel you can use the toSql() method, but in some situations you may need to get the generated query with its values instead of just getting the prepared statement, in this case you can use this package as well as a helper which will give you the generated sql query with its bind parameters as a plain sql query just by calling toRawSql() from any eloquent query.

Installation

You can install the package via composer:

composer require mouadziani/laravel-query-inspector

Usage

// Using toSql()
$query = Model::where('attribute', 'value')->toSql();
dd($query); // select * from models where attribute = ?

// Using toRawSql()
$query = Model::where('attribute', 'value')->toRawSql();
dd($query); // select * from models where attribute = 'value'

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

featured_repository

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].