skip to Main Content

Returning wrong id in laravel

Departemen = 'nama_departemen', 'nama_manager', 'jumlah_pegawai', Pegawai = 'nomor_induk_pegawai', 'nama_pegawai', 'id_departemen', 'email', 'telepon', 'gender', 'status' PegawaiController public function index() { $pegawai = Pegawai::Join('departemens','pegawais.id_departemen','=','departemens.id')->paginate(5); return view ('pegawai.index', compact('pegawai')); } public function destroy($id) { Pegawai::find($id)->delete(); return redirect()->route('pegawai.index')->with(['success'=> 'Item Berhasil Dihapus']); } public function…

VIEW QUESTION
Back To Top
Search