leonsuke

HomeController

Jan 17th, 2018
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public function destroy($id) {
  2. $id = UsersModel::find($id);
  3. $id->delete();
  4. // print_r($id);
  5. // return redirect('/');
  6. return redirect('home')->with('success_delete', 'Data berhasil dihapus. Terima kasih.');
  7. }
Advertisement
Add Comment
Please, Sign In to add comment