Skip to content
Tutorial emka
Menu
  • Home
  • Debian Linux
  • Ubuntu Linux
  • Red Hat Linux
Menu

Laravel 11 Masukkan Fitur Health Check Endpoint

Posted on February 20, 2024

Sebagai bagian dari rilis Laravel 11, aplikasi baru termasuk ujung /up kesehatan. Rute ini didefinisikan dalam file bootstrap/app.php baru dengan melewati parameter kesehatan—yang sudah didefinisikan secara default dalam kerangka Laravel 11:

Application::configure(basePath: dirname(__DIR__))
    ->withProviders()
    ->withRouting(
        web: __DIR__.'/../routes/web.php',
        // api: __DIR__.'/../routes/api.php',
        commands: __DIR__.'/../routes/console.php',
        // channels: __DIR__.'/../routes/channels.php',
        health: '/up', 
    )

Ketika mengatur rute aplikasi, kerangka Laravel mendefinisikan rute kesehatan dan juga mengirimkan sebuah acara DiagnosingHealth:

use IlluminateFoundationEventsDiagnosingHealth;
 
// ...
 
if (is_string($health)) {
    Route::middleware('web')->get($health, function () {
        Event::dispatch(new DiagnosingHealth);
 
        return View::file(__DIR__.'/../resources/health-up.blade.php');
    });
}

Rute ini dapat dikonfigurasi dengan endpoint default /up dan mengembalikan halaman kesehatan “Aplikasi aktif” yang dianimasikan dalam peramban:

Recent Posts

  • How to Calibrate Temperature and Humidity Sensors for Maximum Accuracy
  • Top Open-Source Alternatives to Adobe Creative Cloud for Design and Editing in 2026
  • TinyMediaManager: A Plugin to Organize and Manage Jellyfin Media Library
  • How to Fix the Subscript Out of Range Error in Microsoft Excel
  • What’s New in Podman 5.8: Quadlet & SQLite Migration Explained
  • Microsoft Fixes Old Windows 10 Bug Affecting Parental Controls
  • OpenVPN 2.7 Released with Multi-Socket Support Explained
  • IPFire Launches Community-Driven DBL for Enhanced Domain Blocking
  •  Windows 11 26H1 Update: Microsoft Announces Tailored Core Versions and Phased Rollout
  • Parrot OS 7.1 Launches with Linux Kernel 6.17: Key Features & Benefits Explained
  • About Ubuntu Security: Why It Feels Restrictive and How to Balance Protection with Freedom
  • 7-Zip version 26 Released with Enhanced ZIP and RAR Handling Explained
  • How to Fix Windows Hello Camera Error
  • How to Fix Windows Hello Error 0x80090010: Resolving Access Denied (NTE_PERM)
  • Mesa 26.0 Released with Major Ray Tracing Boost for Linux Users
  •  Stability Over Speed: Linux Mint Announces Major Shift to 3-Year Release Cycle
  • Linux Mint 2026 Report Shows Massive Donation Growth
  • How to Build a Windows 95 Smart Toaster: A Nostalgic Tech Project
  • Windows 11 February 2026 Patch Tuesday Includes Secure Boot Certificate Update
  • Tails 7.4.2 Released with Critical Kernel Fix
  • GNOME 48.9 Released: Stable Bugfix Update for Linux Users
  • How to Fix OpenGL 2.1 Errors: What You Need to Know
  • pGrok: Personal Ngrok Alternative with Dashboard & HTTP Request Inspect
  • Mastering Remote Access: A Guide to Connecting to VMs via PuTTY and MobaXterm
  • Is the Raspberry Pi Still an Affordable SBC? 2026 Update
  • Blokir Nomor WA Tanpa Harus Tambah ke Daftar Hitam, Begini Caranya!
  • Isu SKTP Februari 2026 Sudah Terbit Ternyata Cuma Hoaks? Cek Jadwal Resminya Di Sini
  • Apa itu Mihari Novel? Aplikasi Baca Novel Dibayar
  • Cara Mengatasi NIK Belum Ditemukan di DTKS Saat Daftar KIP Kuliah, Jangan Panik Dulu!
  • Inilah 3 Karakteristik Pembagian Masyarakat Menurut Sibrani yang Bikin Kita Paham Struktur Sosial
  • Prompt AI Menyusun Script Pola Suara Karakter agar Brand Jadi Ikonik
  • Prompt AI untuk Merancang Karakter Brand yang Ikonik
  • Prompt AI Audit Konten Sesuai Karakter Brand
  • Prompt AI Merubah Postingan LinkedIn Jadi Ladang Diskusi dengan ChatGPT
  • Prompt AI: Paksa Algoritma LinkedIn Promosikan Konten Kalian
  • Apa itu Spear-Phishing via npm? Ini Pengertian dan Cara Kerjanya yang Makin Licin
  • Apa Itu Predator Spyware? Ini Pengertian dan Kontroversi Penghapusan Sanksinya
  • Mengenal Apa itu TONESHELL: Backdoor Berbahaya dari Kelompok Mustang Panda
  • Siapa itu Kelompok Hacker Silver Fox?
  • Apa itu CVE-2025-52691 SmarterMail? Celah Keamanan Paling Berbahaya Tahun 2025
©2026 Tutorial emka | Design: Newspaperly WordPress Theme