An open API service indexing awesome lists of open source software.

https://github.com/rakshitbharat/extendeddatabase

Extend Power of Laravel's ORM Eloquent with attaching more methods to it.
https://github.com/rakshitbharat/extendeddatabase

database easy laravel orm

Last synced: 8 months ago
JSON representation

Extend Power of Laravel's ORM Eloquent with attaching more methods to it.

Awesome Lists containing this project

README

          

# Extend Database will give more power to already best.

[![Latest Version on Packagist](https://img.shields.io/packagist/v/rakshitbharat/extendeddatabase.svg?style=flat-square)](https://packagist.org/packages/rakshitbharat/extendeddatabase)
[![Build Status](https://img.shields.io/travis/rakshitbharat/extendeddatabase/master.svg?style=flat-square)](https://travis-ci.org/rakshitbharat/extendeddatabase)
[![Quality Score](https://img.shields.io/scrutinizer/g/rakshitbharat/extendeddatabase.svg?style=flat-square)](https://scrutinizer-ci.com/g/rakshitbharat/extendeddatabase)
[![Total Downloads](https://img.shields.io/packagist/dt/rakshitbharat/extendeddatabase.svg?style=flat-square)](https://packagist.org/packages/rakshitbharat/extendeddatabase)

Extend Power of Laravel's ORM Eloquent with attaching more methods to it.

## Installation

You can install the package via composer:

```bash
composer require rakshitbharat/extendeddatabase
```

## Usage

``` php
echo User::select('*')->where('name','Rakshit')->toSqlWithBindings();
```
Output
select * from `users` where `name` = Rakshit

``` php
echo User::paginateToDatatable();
or
echo User::select('*')->where('name','something')->paginateToDatatable();
```
Excepted output will be more advance pagination options.
For more information to pass parameters to this object with Request object read below.
https://datatables.net/manual/server-side

### Security

If you discover any security related issues, please email rakshitbharatproject@gmail.com instead of using the issue tracker.