/**
  * Define your route model bindings, pattern filters, etc.
  *
  * @param  \Illuminate\Routing\Router  $router
  * @return void
  */
 public function boot(Router $router)
 {
     //
     parent::boot($router);
     $router->bind('devices', function ($slug) {
         return \App\Device::findBySlugOrFail($slug);
     });
     $router->bind('types', function ($slug) {
         return \App\DeviceType::findBySlugOrFail($slug);
     });
     $router->bind('locations', function ($slug) {
         return \App\DeviceLocation::findBySlugOrFail($slug);
     });
     $router->bind('admins', function ($slug) {
         return \App\User::findBySlugOrFail($slug);
     });
     $router->bind('systemusers', function ($slug) {
         return \App\User::findBySlugOrFail($slug);
     });
     $router->bind('activitylogs', function ($id) {
         return \App\Activity::findOrFail($id);
     });
     $router->bind('userlogs', function ($id) {
         return \App\UserLog::findOrFail($id);
     });
     $router->bind('authuser', function ($slug) {
         return \App\User::findBySlugOrFail($slug);
     });
 }
Ejemplo n.º 2
0
 public function adminDashboard()
 {
     $blogCount = Blog::all()->count();
     $tagCount = Tag::all()->count();
     $contactCount = ContactMails::where('messageStatus', 0)->count();
     $totalCount = ContactMails::all()->count();
     $totalHit = UserLog::all()->count();
     return view('admin.dashBoard')->with('blogCount', $blogCount)->with('blogCount', $blogCount)->with('tagCount', $tagCount)->with('contactCount', $contactCount)->with('totalCount', $totalCount)->with('totalHit', $totalHit);
 }
Ejemplo n.º 3
0
 public function getDashboardData()
 {
     $blogCount = Blog::all()->count();
     $tagCount = Tag::all()->count();
     $contactCount = ContactMails::where('messageStatus', 0)->count();
     $totalCount = ContactMails::all()->count();
     $totalHit = UserLog::all()->count();
     return 1;
     #$Response = array('success' => '1', 'blogCount' => $blogCount, 'tagCount' => $tagCount , 'contactCount' => $contactCount, 'totalCount' => 'totalHit' => $totalHit);
 }
Ejemplo n.º 4
0
 public function utilSysaxiomWebLog()
 {
     $sideBar = $this->technologySideBar();
     $userLog = UserLog::orderBy('id', 'desc')->get();
     return view('admin.util.sysWebLog')->with('sideBar', $sideBar)->with('userLog', $userLog);
 }
Ejemplo n.º 5
0
 public function getLogs()
 {
     return \App\UserLog::all();
 }