laravel order by created at desc not working code example Example: laravel order by desc $posts = Post::orderBy('id', 'DESC')->get();