PHPackages                             matteomeloni/laravel-rest-ql - 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. [Database &amp; ORM](/categories/database)
4. /
5. matteomeloni/laravel-rest-ql

ActiveLibrary[Database &amp; ORM](/categories/database)

matteomeloni/laravel-rest-ql
============================

A simple way, to be able to build a query into a Laravel model, through a http request

1.0.5(3y ago)0821MITPHPPHP ^8.0

Since Nov 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/matteomeloni/laravel-rest-ql)[ Packagist](https://packagist.org/packages/matteomeloni/laravel-rest-ql)[ Docs](https://github.com/matteomeloni/laravel-rest-ql)[ RSS](/packages/matteomeloni-laravel-rest-ql/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (8)Used By (1)

LaravelRestQl
=============

[](#laravelrestql)

[![Latest Version on Packagist](https://camo.githubusercontent.com/91f422487448714ca6b1028a15dbe17898a376ed797ab05492d5393bf53e1323/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617474656f6d656c6f6e692f6c61726176656c2d726573742d716c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/matteomeloni/laravel-rest-ql)[![Total Downloads](https://camo.githubusercontent.com/466344c6c9c035e71a662533f72adaf8ef2ce15561d4c7a99a6157c3fa0c36bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617474656f6d656c6f6e692f6c61726176656c2d726573742d716c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/matteomeloni/laravel-rest-ql)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

A simple way, to be able to build a query into a Laravel model, through a http request.

- [Installation](#installation)
- [Usage](#usage)

    - [How to build query](#how-to-build-query)

        - [Passing an Array](#passing-an-array)
        - [Passing Data with HTTP Request](#passing-data-with-http-request)
    - [Examples](#examples)

        - [Choose columns](#choose-columns)
        - [Search string](#search-string)
        - [Where conditions](#where-conditions)
        - [Ordering](#ordering)
- [Requirements](#requirements)

Installation
------------

[](#installation)

---

Via Composer

```
$ composer require matteomeloni/laravel-rest-ql
```

Usage
-----

[](#usage)

---

Extends your model with `Matteomeloni\LaravelRestQl\LaravelRestQl`

```
