/** * 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); }); }
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); }
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); }
public function utilSysaxiomWebLog() { $sideBar = $this->technologySideBar(); $userLog = UserLog::orderBy('id', 'desc')->get(); return view('admin.util.sysWebLog')->with('sideBar', $sideBar)->with('userLog', $userLog); }
public function getLogs() { return \App\UserLog::all(); }