Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Spiral's avatar

I want to orderBy('updated_at', 'asc') in laravel using datatables

I'm using orderBy query but not working

You can my code

$product= Product::query()->orderBy('updated_at', 'asc')->get();
0 likes
1 reply
Spiral's avatar
Spiral
OP
Best Answer
Level 3

$product= Product::query()->orderBy('updated_at', 'asc')

Please or to participate in this conversation.