app/Http/Controllers/PengujianController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
        Petugas::create([
            'id_petugas_admin' => $request->id_petugas_admin,
            'id_petugas_lab' => $request->id_petugas_lab,
            'total_harga' => $request->total_harga,
            'bukti_pembayaran' => $request->bukti_pembayaran,
            'status_pengujian' => $request->status_pengujian,
            'hasil_pengujian' => $request->hasil_pengujian
                ]);
        return redirect()->route('pengujian.index')
        ->with('message', 'Data berhasil disimpan');
    }
public function store ( Request $ request ) { Petugas :: create ( [ 'id_petugas_admin' => $ request -> id_petugas_admin , 'id_petugas_lab' => $ request -> id_petugas_lab , 'total_harga' => $ request -> total_harga , 'bukti_pembayaran' => $ request -> bukti_pembayaran , 'status_pengujian' => $ request -> status_pengujian , 'hasil_pengujian' => $ request -> hasil_pengujian ] ) ; return redirect ( ) -> route ( 'pengujian.index' ) -> with ( 'message' , 'Data berhasil disimpan' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//'user_id' => $request->user_id,