app/Http/Controllers/BahanController.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['bahan'] = Bahan::all();
      return view('inventory.bahan.index',$data);
    }
public function index ( ) { $ data [ 'bahan' ] = Bahan :: all ( ) ; return view ( 'inventory.bahan.index' , $ data ) ; }
Display a listing of the resource.
Display a listing of the resource .