Laravel Orchid: Get table rows

Viewed 11

I have 9 rows of data in a table - I then used a date filter to select 3 of the rows:

3 rows displayed

I have a button to update the database for these 3 rows like this:

    public function getRows()
    {
        $payouts = PayoutsAdminModel::filters()->defaultSort('id', 'desc')->get();
        dd($payouts);
        ...
    }

The problem is, when I dd($payouts) I get all 9 rows in the table. How do I only get the 3 rows I have filtered by date?

0 Answers
Related