Skip to content

A Laravel package for effortlessly managing the order of Eloquent models. Simplify sorting, reordering, and maintaining the order of items in your application with ease.

Notifications You must be signed in to change notification settings

rajurayhan/laravel-eloquent-order-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Laravel Eloquent Order Manager

Latest Version on Packagist GitHub Tests Action Status Total Downloads

A Laravel package for effortlessly managing the order of Eloquent models. Simplify sorting, reordering, and maintaining the order of items in your application with ease.

Installation

You can install the package via composer:

composer require rajurayhan/laravel-eloquent-order-manager


## Usage 
  
    use Raju\EloquentOrder\EloquentOrderManagerService;

    $orderManager = new EloquentOrderManagerService(YourModel::class);
    $newItem = ["name" => "New Item", "order" => 4];
    $newItem = ["id" => 5, "name" => "New Item", "order" => 4]; // If Updating existing entry.
    $orderManager->addOrUpdateItem($newItem);
 
## Find Me
	Email: devraju.bd@gmail.com 

About

A Laravel package for effortlessly managing the order of Eloquent models. Simplify sorting, reordering, and maintaining the order of items in your application with ease.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages