1])->latest()->take(4)->get(); $userCount = User::count(); $renderQueueCount = RenderQueue::count(); $threadCount = ForumThread::count(); $postCount = ForumPost::count(); $totalPosts = $threadCount + $postCount; $itemCount = Item::count(); $newestUser = User::orderBy('joined', 'DESC')->first(); return view('welcome')->with( [ 'announcements' => $announcements, 'userCount' => $userCount, 'renderQueueCount' => $renderQueueCount, 'threadCount' => $threadCount, 'postCount' => $postCount, 'totalPosts' => $totalPosts, 'itemCount' => $itemCount, 'newestUser' => $newestUser ] ); } }