app/Http/Controllers/BarangController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $user = Auth::user();
        $kategoris = Kategori::all();
        return view('staff.barang.create', compact('user', 'kategoris'));
    }
public function create ( ) { $ user = Auth :: user ( ) ; $ kategoris = Kategori :: all ( ) ; return view ( 'staff.barang.create' , compact ( 'user' , 'kategoris' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .