bizarg/order

2.0.0 2024-11-08 07:18 UTC

This package is auto-updated.

Last update: 2025-03-08 07:56:13 UTC


README

<?php
$order = Order::fromRequest(
    Illuminate\Http\Request $request, //required
    ['createdAt' => 'created_at'], //required
    'createdAt', //optional
    'asc', //optional
    'sort' //optional
);

//---------------------------------------
$oreder = (new Order())->setField('created_at')->setDirection('desc');