In my Laravel-5.8, I have this code to delete tables on conditions:
public function destroy($id) { try { $identity = Identity::findOrFa