Customer::count() ]); } public function maintance() { return inertia('Maintance'); } public function reset() { DB::beginTransaction(); CustomerPoint::truncate(); Customer::truncate(); DB::commit(); return redirect()->route('setting.index') ->with('message', ['type' => 'success', 'message' => 'All data has been reset']); } }