app/Http/Controllers/DataLaporanController.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)
    {
        $validate = $request->validate([
            'id_data_bimbingan' => 'required',
            'tanggal_laporan' => 'required|date',
            'kegiatan_pekerjaan' => 'required',
            'deskripsi_pekerjaan' => 'required',
            'output' => 'required',
            'durasi' => 'required',
            'capaian_id' => 'required'
        ]);
        Laporan::create($validate);
        return back()->with('sukses', 'Laporan berhasil diinput.');
    }
public function store ( Request $ request ) { $ validate = $ request -> validate ( [ 'id_data_bimbingan' => 'required' , 'tanggal_laporan' => 'required|date' , 'kegiatan_pekerjaan' => 'required' , 'deskripsi_pekerjaan' => 'required' , 'output' => 'required' , 'durasi' => 'required' , 'capaian_id' => 'required' ] ) ; Laporan :: create ( $ validate ) ; return back ( ) -> with ( 'sukses' , 'Laporan berhasil diinput.' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .