app/Http/Controllers/PerpustakaanController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $data = DB::table('buku')
            ->leftjoin('rak_buku', 'rak_buku.id', '=', 'buku.id')
            ->get();
        return view ('home0217')->with('data', $data);
    }
public function index ( ) { $ data = DB :: table ( 'buku' ) -> leftjoin ( 'rak_buku' , 'rak_buku.id' , '=' , 'buku.id' ) -> get ( ) ; return view ( 'home0217' ) -> with ( 'data' , $ data ) ; }
Display a listing of the resource.
Display a listing of the resource .