PHPackages                             jamesaspence/grandiloquent - 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. jamesaspence/grandiloquent

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

jamesaspence/grandiloquent
==========================

An extension on Laravel's wonderful Eloquent ORM, Grandiloquent seeks to change a few things in the name of greater efficiency. Mainly, these changes entail grouped queries and other, more efficient SQL usage.

1.1.4(10y ago)035MITPHP

Since May 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/jamesaspence/Grandiloquent)[ Packagist](https://packagist.org/packages/jamesaspence/grandiloquent)[ RSS](/packages/jamesaspence-grandiloquent/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (8)Used By (0)

Grandiloquent (A Laravel 5 Eloquent Package)
============================================

[](#grandiloquent-a-laravel-5-eloquent-package)

Grandiloquent is a simple and elegant extension on Eloquent that makes mass writes to the database more efficient. My entire philosophy was to ensure that Eloquent methods, such as saveMany, and push, would be more efficient on the database.

MySQL Only
----------

[](#mysql-only)

This package only works with MySQL currently. It uses raw queries to achieve the functionality used here. Eventually I'd like to support all database types supported by laravel, but that is not the case yet.

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

[](#installation)

Installation can be done by adding the following line to your composer.json require:

```
"jamesaspence/grandiloquent": "1.*"

```

\##Configuration

You'll need to either A) extend the GrandModel class, or add the GrandModelTrait to your Eloquent classes. The idea is to make this configuration as simple as possible.

Basic Usage
-----------

[](#basic-usage)

Grandiloquent will integrate directly into current workflow. For example, let's assume you have a model system defined thus:

```
