diff --git a/app/controllers/PageController.php b/app/controllers/PageController.php index ef278fd..95f7899 100644 --- a/app/controllers/PageController.php +++ b/app/controllers/PageController.php @@ -628,6 +628,11 @@ public function postSocialmediaInfo() /* Home Page (GET) */ public function getAboutUs() { + $user = DB::table('users')->orderBy('created_at', 'desc')->first(); + $usercount = (int) $user->id; + //return $usercount; + View::share('usercount', $usercount); + return View::make('page.aboutus'); } diff --git a/app/views/page/aboutus.blade.php b/app/views/page/aboutus.blade.php index 28c95c6..8b13208 100644 --- a/app/views/page/aboutus.blade.php +++ b/app/views/page/aboutus.blade.php @@ -11,6 +11,7 @@
#iitmconnect is the first project that has been taken up by the I&AR Web Operations Team.
The purpose of this porject is to help you stay in touch with insti forever.
+Users registered since April 21, 2015 on #iitmconnect : {{$usercount}}