app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
Show the application dashboard.
@return \Illuminate\Http\Response
Show the application dashboard . @return \ Illuminate \ Http \ Response
public function index()
    {
        $mhs = DB::table('mahasiswas')
            ->join('prodis', 'mahasiswas.mhs_prodi_id', '=', 'prodis.prodi_id')
            ->select('mahasiswas.*', 'prodis.prodi_nama')
            ->get();
        return view('home', compact('mhs'));
    }
public function index ( ) { $ mhs = DB :: table ( 'mahasiswas' ) -> join ( 'prodis' , 'mahasiswas.mhs_prodi_id' , '=' , 'prodis.prodi_id' ) -> select ( 'mahasiswas.*' , 'prodis.prodi_nama' ) -> get ( ) ; return view ( 'home' , compact ( 'mhs' ) ) ; }
Show the application dashboard.
Show the application dashboard .