public function destroy(Role_user $role_user) { if (is_integer($role_user)) { $role_user = Role_user::find($role_user); } $role_user->delete(); Flash::success('Role_user has been created Deleted!'); return Redirect::back(); }
public function destroy($role_user) { $role_user = Role_user::find($role_user); $role_user->delete(); return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']); }