app/Http/Controllers/KulinerController.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()
    {
        $kuliner =  Kuliner::with('kategori')->get();
        return view('kuliner.index', compact('kuliner'));
    }
public function index ( ) { $ kuliner = Kuliner :: with ( 'kategori' ) -> get ( ) ; return view ( 'kuliner.index' , compact ( 'kuliner' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .