middleware('health'); } /** * Returns a fixed JSON content ({ "status": "ok"}) which indicate the app is up and running */ public function get() { try { if (DB::select('select 2 + 2')) { return response()->json([ 'status' => 'ok', ]); } } catch (\Exception $e) { \Log::error('Could not connect to database'); return response()->json([ 'status' => 'Could not connect to database', ], 500); } die(); } }