Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function destroy($id) {
- $id = UsersModel::find($id);
- $id->delete();
- // print_r($id);
- // return redirect('/');
- return redirect('home')->with('success_delete', 'Data berhasil dihapus. Terima kasih.');
- }
Advertisement
Add Comment
Please, Sign In to add comment