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