Point the load balancer at /up

Laravel registers /up. A load balancer can hit it. The Vue app should not use it as a homepage.

For your AI agent

Copies a prompt. Paste it into the AI agent you already have open.

Read https://laravel-vuejs.space/laravel-health-route-up.md
Laravel registers /up. A load balancer can hit it. The Vue app should not use it as a homepage.
Do not point it at /login or /.
Do not add auth middleware to /up.
Do not build a Vue dashboard as the health check.
Show the diff. Do not commit.
On this page · 3 sections
  1. The fix
  2. What to avoid
  3. FAQ

People searching “Laravel health check” build a Vue page that queries the database and then the probe follows a login redirect. Laravel already registers /up from bootstrap/app.php. The deploy guide is everything else a probe sits next to.

TL;DR

  • Laravel registers /up.
  • A load balancer can hit it.
  • The Vue app should not use it as a homepage.
  • Do not point it at /login or /.

Who it's for: Laravel + Vue developers

Applies to: Laravel 13 · Vue 3

The fix#

php
->withRouting(
    web: __DIR__.'/../routes/web.php',
    health: '/up',
)

GET /up returns 200 when the app boots. It does not render Inertia. Point the load balancer at that path. Do not point it at /login or /. A login page can return 200 while the app is too sick to serve a real request, and it can also return a redirect your probe treats as failure.

What to avoid#

Gotcha

Do not add auth middleware to /up. The probe is not a user. Do not build a Vue dashboard as the health check. If you need a deeper check, add it on the server and keep the public body empty of secrets.

FAQ#

How do I point the load balancer at /up?

Laravel registers /up. A load balancer can hit it. The Vue app should not use it as a homepage.

What goes wrong with Laravel health check?

Many developers build a Vue page that queries the database and then the probe follows a login redirect. Do not point it at /login or /.

Found this useful?

Ask questions, share what you built.

Join thousands of Laravel and Vue developers in our Facebook group, or get new posts in your Telegram feed. Sharing this article helps too.

Keep reading

Newsletter

Get the best of Laravel & Vue, once a month.

One short email with new guides, release notes worth reading and hand-picked community links. No spam, unsubscribe any time.