Package

Anourvalar Eloquent Serialize

Laravel Query Builder (Eloquent) serialization

Package

anourvalar/eloquent-serialize

View on GitHub →

Serialization for Eloquent's QueryBuilder

Supports: Laravel 6 - Laravel 13

Installation

composer require anourvalar/eloquent-serialize

Usage

Serialize

$package = \EloquentSerialize::serialize(
    \App\User::query()
        ->with('userPhones')
        ->where('id', '>', '10')
        ->limit(20)
);

Unserialize

$builder = \EloquentSerialize::unserialize($package);

foreach ($builder->get() as $item) {
    // ...
}

Anourvalar Eloquent Serialize Related Articles

Serialization for Eloquent's QueryBuilder image

Serialization for Eloquent's QueryBuilder

Read article
Generate Documents in PHP With an Excel Template image

Generate Documents in PHP With an Excel Template

Read article
Boost your Eloquent Models with Laravel Lift image

Boost your Eloquent Models with Laravel Lift

Read article
Search Across Multiple Eloquent Models With Cross-Eloquent Search image

Search Across Multiple Eloquent Models With Cross-Eloquent Search

Read article
Eloquent Performance Patterns video course by Jonathan Reinink (sponsor) image

Eloquent Performance Patterns video course by Jonathan Reinink (sponsor)

Read article
20 Laravel Eloquent Tips and Tricks image

20 Laravel Eloquent Tips and Tricks

Read article

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum