feat: update dashbord for admin panel
This commit is contained in:
@@ -14,7 +14,7 @@ class DashboardController extends Controller
|
|||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$recentComments = Comment::with(['user', 'commentable'])
|
$recentComments = Comment::with(['user', 'commentable'])
|
||||||
->latest()
|
->orderByDesc('created_at')
|
||||||
->paginate(5);
|
->paginate(5);
|
||||||
|
|
||||||
$totalUser = User::count();
|
$totalUser = User::count();
|
||||||
|
|||||||
Reference in New Issue
Block a user