app/Http/Controllers/LaporanController.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(LaporanRequest $request)
    {
        Laporan::create(collect($request)->put('id_data_bimbingan',auth()->user()->mahasiswa->pemagangan->id)->toArray()); 
        return redirect('/laporan')->with('sukses','Data Berhasil di input');
    }
public function create ( LaporanRequest $ request ) { Laporan :: create ( collect ( $ request ) -> put ( 'id_data_bimbingan' , auth ( ) -> user ( ) -> mahasiswa -> pemagangan -> id ) -> toArray ( ) ) ; return redirect ( '/laporan' ) -> with ( 'sukses' , 'Data Berhasil di input' ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
//Cuma sebaris kang