add 4 field in stored,updates fungsi
This commit is contained in:
parent
15cd514aa6
commit
5dc4551b7c
|
@ -52,7 +52,11 @@ public function store(Request $request)
|
|||
'jenis_barang_id'=>$request->jenis_barang,
|
||||
'satuan_id'=>$request->satuan_barang,
|
||||
'jumlah_barang'=>$request->jumlah,
|
||||
'lokasi'=>$request->lokasi
|
||||
'lokasi'=>$request->lokasi,
|
||||
'harga'=>$request->harga_barang,
|
||||
'nup'=>$request->nup,
|
||||
'kategori_simak_id'=>$request->kategori_simak,
|
||||
'kode_barang'=>$request->kode_barang
|
||||
);
|
||||
|
||||
$insert = DB::table('tbl_barang')->insert($data);
|
||||
|
@ -105,6 +109,10 @@ public function updates_barang(Request $request)
|
|||
'tanggal_masuk'=>$request->tanggal_masuk,
|
||||
'keterangan'=>$request->keterangan,
|
||||
'image'=>$fileName,
|
||||
'kode_barang'=>$request->kode_barang,
|
||||
'kategori_simak_id'=>$request->kategori_simak,
|
||||
'harga'=>$request->harga_barang,
|
||||
'nup'=>$request->nup,
|
||||
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user