header('X-Inertia')) { return back()->with('error', 'Failed to destroy git hook.'); } return null; } }