PHPackages                             cydrickn/laravel-query-factory - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. cydrickn/laravel-query-factory

ActiveLibrary[Testing &amp; Quality](/categories/testing)

cydrickn/laravel-query-factory
==============================

Query Factory use for easily mock your query builder without sending query from real database

v1.0.1(6y ago)3131MITPHPPHP &gt;=7.1.0CI failing

Since Apr 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/cydrickn/laravel-query-factory)[ Packagist](https://packagist.org/packages/cydrickn/laravel-query-factory)[ RSS](/packages/cydrickn-laravel-query-factory/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Laravel Query Factory
=====================

[](#laravel-query-factory)

[![PHP from Packagist](https://camo.githubusercontent.com/80be96de8f44e12bba777a661eb1e15fedec541f15a89181c308739ec78eb164/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6379647269636b6e2f6c61726176656c2d71756572792d666163746f72792e737667)](https://packagist.org/packages/cydrickn/laravel-query-factory)[![Software License](https://camo.githubusercontent.com/a96fefcf31dcfade27eed5e376bac35992e5d2d90e76acb57f2cfbfb170fc927/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6379647269636b6e2f6c61726176656c2d71756572792d666163746f72792e737667)](/LICENSE)[![ci](https://github.com/cydrickn/laravel-query-factory/workflows/ci/badge.svg?branch=master)](https://github.com/cydrickn/laravel-query-factory/workflows/ci/badge.svg?branch=master)[![Coverage Status](https://camo.githubusercontent.com/d9f269f5b63a0ad914b6fa47dd83708691f5949ea76231d4dce2340b15396fb9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6379647269636b6e2f6c61726176656c2d71756572792d666163746f72792f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/cydrickn/laravel-query-factory?branch=master)

Laravel Query Factory, is library for you to easily mock your query builder without sending query from real database.

The library is to use for developers who really follow the Automating Testing, The unit test is the most low level where you need tto test your whole system.

### Problem that want to solve by this Library

[](#problem-that-want-to-solve-by-this-library)

In laravel is one of the problem, where most of the tutorials and even in document of laravel, the testing is mostly focusing in integration, api and acceptance.

Example of this test are:

```
