app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
Show the application dashboard.
@return \Illuminate\Contracts\Support\Renderable
Show the application dashboard . @return \ Illuminate \ Contracts \ Support \ Renderable
public function index()
    {
        $user = DB::table('users')->count();
        $presensi = DB::table('presensis')->count();
        $alpha = $user - $presensi;
        return view('home', compact(['user','presensi','alpha']));   
    }
public function index ( ) { $ user = DB :: table ( 'users' ) -> count ( ) ; $ presensi = DB :: table ( 'presensis' ) -> count ( ) ; $ alpha = $ user - $ presensi ; return view ( 'home' , compact ( [ 'user' , 'presensi' , 'alpha' ] ) ) ; }
Show the application dashboard.
Show the application dashboard .