admin dashboard refactoring

This commit is contained in:
Čarodej
2022-01-12 13:58:51 +01:00
parent e1bb4b2cbe
commit 4feba76f57
22 changed files with 1157 additions and 563 deletions

View File

@@ -12,7 +12,8 @@ class GetNewbiesController extends Controller
$users = User::sortable([
'created_at' => 'desc',
])
->paginate(10);
->take(5)
->get();
return new UsersCollection($users);
}