app/Http/Controllers/LabController.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)
    {
        Lab::create([
            'nama_lab' => $request->nama_lab,
            'tempat_lab' => $request->tempat_lab,
            'keterangan' => $request->keterangan
                ]);
        return redirect()->route('lab.index')->with('message', 'Data berhasil disimpan');
    }
public function store ( Request $ request ) { Lab :: create ( [ 'nama_lab' => $ request -> nama_lab , 'tempat_lab' => $ request -> tempat_lab , 'keterangan' => $ request -> keterangan ] ) ; return redirect ( ) -> route ( 'lab.index' ) -> with ( 'message' , 'Data berhasil disimpan' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .