New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

apollopy/laravel-x-eloquent

Enhanced Eloquent for Laravel
15,738 1

Larablocks Analysis

apollopy/laravel-x-eloquent works with Laravel 5 (latest release 2.0.0, Nov 29, 2018), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Nov 29, 2018)
  • 0 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Nov 29, 2018.
  • No releases in the last 12 months.
  • First released: Feb 19, 2016.
  • 1 open issue on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.

Install
composer require apollopy/laravel-x-eloquent
Latest Version:2.0.0
PHP:>=5.6.4
Laravel:5
License:MIT
Last Updated:Dec 25, 2018
Links: GitHub  ·  Packagist
Maintainer: apollopy

laravel-x-eloquent

Installation

composer require apollopy/laravel-x-eloquent

After updating composer, add the service provider to the providers array in config/app.php

ApolloPY\Eloquent\EloquentServiceProvider::class,

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

Extension

sortByIds

$ids = [3, 1, 2];
$posts = Post::find($ids); // collection -> [1, 2, 3]
$posts = $posts->sortByIds($ids); // collection -> [2 => 3, 0 => 1, 1 => 2]
$posts = $posts->values(); // collection -> [3, 1, 2]

chunkByTime

Topic::where('user_id', 1)->chunkByTime(3600, function ($topics) {
    //
});

Related Packages

sofa/hookable

Laravel Eloquent hooks system.

2,059,111 64
volosyuk/simple-eloquent

Adaptation of eloquent for retrieving its attributes

119,868 55
gzero/eloquent-tree

Eloquent Tree is a tree model for Laravel Eloquent ORM.

59,893 131
martinbean/laravel-sluggable-trait

A trait you can apply to Eloquent models to have slugs automatically generated o...

49,246 24
isswp101/elasticsearch-eloquent

Elasticsearch functionality like Laravel Eloquent models.

26,254 112

Version History

Version Released PHP Laravel License
2.0.0 >=5.6.4 ^5.4 MIT
1.2.0 >=5.5.9 5.1.*|5.2.* MIT
1.1.2 >=5.5.9 5.1.*|5.2.* MIT
1.1.1 >=5.5.9 5.1.* MIT
1.1.0 >=5.5.9 5.1.* MIT