We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 684d217 commit 4112ab5Copy full SHA for 4112ab5
src/Http/Controllers/UrlController.php
@@ -16,7 +16,7 @@ class UrlController extends Controller
16
*/
17
public function index()
18
{
19
- $urls = Url::paginate(config('shorturl.items_per_page'));
+ $urls = Url::orderBy('created_at', 'desc')->paginate(config('shorturl.items_per_page'));
20
21
return view('shorturl::urls.index', compact('urls'));
22
}
0 commit comments