• Home
  • diseases
  • Tips for Overcoming Insomnia for People with Diabetes

Tips for Overcoming Insomnia for People with Diabetes

Tips for Overcoming Insomnia for People with Diabetes
Illustration of insomnia. Credit: Freepik

Share :


Diabetes is a condition characterized by elevated blood sugar levels. Many individuals with diabetes are prone to sleep disturbances at night, which can leave them feeling unrested, fatigued, and drowsy throughout the day. How can people with diabetes overcome these sleep issues? Check out the review below.

 

Sleep Disorders in People with Diabetes

Research shows that diabetes and sleep disorders are closely connected. Sleep disorders have been linked to high blood sugar levels in people with diabetes and prediabetes. Conversely, those with type 2 diabetes are more likely to experience sleep disturbances due to fluctuating blood sugar levels.

Sleep disorders in people with diabetes can include trouble falling asleep, difficulty staying asleep, or oversleeping. These problems may arise from blood sugar levels that are either too high or too low.

When blood sugar is high, frequent urination can disrupt sleep, causing people to wake up to use the bathroom. High blood sugar also pulls water from body tissues, leading to dehydration and waking up to drink water. Conversely, low blood sugar levels can cause dizziness or tremors, further disrupting sleep.

Aside from these mechanisms, several specific sleep disorders are commonly experienced by people with diabetes, such as:

Sleep apnea

Sleep apnea occurs when breathing repeatedly stops and starts during the night. This disorder is common in those with type 2 diabetes and is characterized by feeling tired during the day and snoring at night.

Restless leg syndrome

Restless leg syndrome causes a constant urge to move the legs, often happening at night and making it hard to fall asleep.

Insomnia

Insomnia involves difficulty falling asleep or staying asleep. Those with high levels of stress, coupled with high glucose levels, are more at risk of developing insomnia.

 

How to Overcome Sleep Disorders in People with Diabetes

A lack of sleep can lead to both cognitive and physical impairments. Here are several strategies that can help people with diabetes achieve better sleep:

Therapy or treatment

Treatment for sleep disorders should be tailored to the specific issue. For people with diabetes who suffer from sleep apnea, doctors may recommend a breathing device to keep airways open and prevent snoring. Restless leg syndrome can be managed with medications suited to the symptoms.

Implementing a healthy sleep routine

To improve sleep quality, people with diabetes should adopt a healthy bedtime routine, including:

  • Keeping the bedroom clean
  • Reducing gadget use before bed
  • Keeping the bedroom tidy
  • Ensuring the room temperature is comfortable (neither too cold nor too hot)

Reducing caffeine, cigarettes, and alcohol intake before bedtime

It's essential to avoid consuming stimulants like caffeine or alcohol before bed. Caffeine can cause sleeplessness, while alcohol raises blood sugar levels, and it takes around two hours for the body to metabolize alcohol completely.

Regular exercise

Regular physical activity can promote better sleep and support smoother metabolic function. However, avoid intense exercise right before bedtime, as this can have the opposite effect and make it harder to fall asleep.

 

People with diabetes are particularly vulnerable to sleep disturbances. If you have diabetes and are experiencing sleep issues, regularly monitor your blood sugar levels and consult a doctor for guidance. You can also access consultation services through the Ai Care app, available on the App Store and Play Store.

 

Want more information about other diseases? Click here!

Writer : Ratih AI Care
Editor :
  • dr Hanifa Rahma
Last Updated : Thursday, 17 October 2024 | 14:50

Purdie, J. (2021). How Does Diabetes Affect Sleep?. Available from: https://www.healthline.com/health/diabetes/diabetes-and-sleep

Pacheco, D. (2023). Lack of Sleep and Diabetes. Available from: https://www.sleepfoundation.org/physical-health/lack-of-sleep-and-diabetes

WebMD Editorial Contributors. (2024). Type 2 Diabetes and Sleep. Available from: https://www.webmd.com/diabetes/type-2-diabetes-sleep

Welch, A. (2022). 8 Ways to Sleep Better When You Have Diabetes. Available from: https://www.everydayhealth.com/hs/type-2-diabetes-care/sleep-better/

Request history8.1.29PHP Version1.07sRequest Duration8MBMemory UsageGET {category}/{slug}Route
  • warninglog[21:57:27] LOG.warning: str_contains(): Passing null to parameter #1 ($haystack) of type string is d...
  • warninglog[21:57:27] LOG.warning: str_contains(): Passing null to parameter #1 ($haystack) of type string is d...
  • infolog[21:57:27] LOG.info: Attempting to authenticate with: { "username": "administrator", "url": ...
  • infolog[21:57:28] LOG.info: Attempting to authenticate with: { "username": "administrator", "url": ...
  • errorlog[21:57:28] LOG.error: Error accessing doctor id: 63983202e088e5e18c0511d7 { "exception": "Undefi...
  • Booting (252ms)time
  • Application (822ms)time
  • 1 x Application (76.57%)
    822ms
    1 x Booting (23.43%)
    252ms
    11 templates were rendered
    • 1x web.v2.single-post-healthpediasingle-post-healthpedia.blade.php#?blade
    • 1x web.v2.partials.single.breadcrumbbreadcrumb.blade.php#?blade
    • 2x web.partials.single-sharesingle-share.blade.php#?blade
    • 1x web.v2.partials.single.editoreditor.blade.php#?blade
    • 1x web.v2.partials.single.tagstags.blade.php#?blade
    • 1x web.v2.partials.single.referensireferensi.blade.php#?blade
    • 1x web.v2.partials.article-populararticle-popular.blade.php#?blade
    • 1x web.v2.partials.related-articlerelated-article.blade.php#?blade
    • 1x web.v2.partials.healthtopichealthtopic.blade.php#?blade
    • 1x layouts.v2.web_layoutweb_layout.blade.php#?blade
    uri
    GET {category}/{slug}
    middleware
    web
    controller
    App\Http\Controllers\WebController@newSinglePost
    namespace
    App\Http\Controllers
    prefix
    where
    as
    web.new.single.post
    file
    app/Http/Controllers/WebController.php:645-806
    33 statements were executed473ms
    • WebController.php#656aicare_prod_new970μsselect * from `categories` where (`slug` = 'diseases' or `slug_en` = 'diseases') and `categories`.`deleted_at` is null limit 1
      Bindings
      • 0: diseases
      • 1: diseases
      Hints
      • Use SELECT * only if you need all columns from table
      • LIMIT without ORDER BY causes non-deterministic results, depending on the query execution plan
      Backtrace
      • app/Http/Controllers/WebController.php:656
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
    • WebController.php#657aicare_prod_new83.9msselect * from `posts` where (`slug` = 'tips-for-overcoming-insomnia-for-people-with-diabetes-en' or `slug_en` = 'tips-for-overcoming-insomnia-for-people-with-diabetes-en') and `posts`.`deleted_at` is null limit 1
      Bindings
      • 0: tips-for-overcoming-insomnia-for-people-with-diabetes-en
      • 1: tips-for-overcoming-insomnia-for-people-with-diabetes-en
      Hints
      • Use SELECT * only if you need all columns from table
      • LIMIT without ORDER BY causes non-deterministic results, depending on the query execution plan
      Backtrace
      • app/Http/Controllers/WebController.php:657
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
    • WebController.php#703aicare_prod_new76.21msselect * from `posts` where (`slug` = 'tips-for-overcoming-insomnia-for-people-with-diabetes-en' or `slug_en` = 'tips-for-overcoming-insomnia-for-people-with-diabetes-en') and `status` = 1 and `publish_date` <= '2025-04-27 21:57:27' and `deleted_at` is null and `posts`.`deleted_at` is null limit 1
      Bindings
      • 0: tips-for-overcoming-insomnia-for-people-with-diabetes-en
      • 1: tips-for-overcoming-insomnia-for-people-with-diabetes-en
      • 2: 1
      • 3: 2025-04-27 21:57:27
      Hints
      • Use SELECT * only if you need all columns from table
      • LIMIT without ORDER BY causes non-deterministic results, depending on the query execution plan
      Backtrace
      • app/Http/Controllers/WebController.php:703
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
    • WebController.php#703aicare_prod_new1.02msselect `users`.*, `post_editor`.`post_id` as `pivot_post_id`, `post_editor`.`user_id` as `pivot_user_id`, `post_editor`.`created_at` as `pivot_created_at`, `post_editor`.`updated_at` as `pivot_updated_at` from `users` inner join `post_editor` on `users`.`id` = `post_editor`.`user_id` where `post_editor`.`post_id` in (9866)
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • app/Http/Controllers/WebController.php:703
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
    • WebController.php#703aicare_prod_new1.03msselect `users`.*, `post_english_editors`.`post_id` as `pivot_post_id`, `post_english_editors`.`user_id` as `pivot_user_id`, `post_english_editors`.`created_at` as `pivot_created_at`, `post_english_editors`.`updated_at` as `pivot_updated_at` from `users` inner join `post_english_editors` on `users`.`id` = `post_english_editors`.`user_id` where `post_english_editors`.`post_id` in (9866)
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • app/Http/Controllers/WebController.php:703
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
    • WebController.php#703aicare_prod_new6.06msselect `categories`.*, `category_post`.`post_id` as `pivot_post_id`, `category_post`.`category_id` as `pivot_category_id`, `category_post`.`created_at` as `pivot_created_at`, `category_post`.`updated_at` as `pivot_updated_at` from `categories` inner join `category_post` on `categories`.`id` = `category_post`.`category_id` where `category_post`.`post_id` in (9866) and `categories`.`deleted_at` is null
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • app/Http/Controllers/WebController.php:703
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
    • WebController.php#703aicare_prod_new1.07msselect * from `categories` where `categories`.`id` in (0) and `categories`.`deleted_at` is null
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • app/Http/Controllers/WebController.php:703
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
    • WebController.php#724aicare_prod_new15.65msselect `tags`.*, `post_tag`.`post_id` as `pivot_post_id`, `post_tag`.`tag_id` as `pivot_tag_id`, `post_tag`.`created_at` as `pivot_created_at`, `post_tag`.`updated_at` as `pivot_updated_at` from `tags` inner join `post_tag` on `tags`.`id` = `post_tag`.`tag_id` where `post_tag`.`post_id` = 9866
      Bindings
      • 0: 9866
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • app/Http/Controllers/WebController.php:724
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
    • WebController.php#1362aicare_prod_new17.7msselect `posts`.*, `post_tag`.`tag_id` as `pivot_tag_id`, `post_tag`.`post_id` as `pivot_post_id` from `posts` inner join `post_tag` on `posts`.`id` = `post_tag`.`post_id` where `post_tag`.`tag_id` = 15 and `posts`.`deleted_at` is null
      Bindings
      • 0: 15
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • app/Http/Controllers/WebController.php:1362
      • app/Http/Controllers/WebController.php:735
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
    • WebController.php#1362aicare_prod_new15.04msselect `posts`.*, `post_tag`.`tag_id` as `pivot_tag_id`, `post_tag`.`post_id` as `pivot_post_id` from `posts` inner join `post_tag` on `posts`.`id` = `post_tag`.`post_id` where `post_tag`.`tag_id` = 84 and `posts`.`deleted_at` is null
      Bindings
      • 0: 84
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • app/Http/Controllers/WebController.php:1362
      • app/Http/Controllers/WebController.php:735
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
    • WebController.php#1362aicare_prod_new14.08msselect `posts`.*, `post_tag`.`tag_id` as `pivot_tag_id`, `post_tag`.`post_id` as `pivot_post_id` from `posts` inner join `post_tag` on `posts`.`id` = `post_tag`.`post_id` where `post_tag`.`tag_id` = 218 and `posts`.`deleted_at` is null
      Bindings
      • 0: 218
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • app/Http/Controllers/WebController.php:1362
      • app/Http/Controllers/WebController.php:735
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
    • WebController.php#1362aicare_prod_new13.46msselect `posts`.*, `post_tag`.`tag_id` as `pivot_tag_id`, `post_tag`.`post_id` as `pivot_post_id` from `posts` inner join `post_tag` on `posts`.`id` = `post_tag`.`post_id` where `post_tag`.`tag_id` = 3334 and `posts`.`deleted_at` is null
      Bindings
      • 0: 3334
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • app/Http/Controllers/WebController.php:1362
      • app/Http/Controllers/WebController.php:735
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
    • WebController.php#1362aicare_prod_new13.93msselect `posts`.*, `post_tag`.`tag_id` as `pivot_tag_id`, `post_tag`.`post_id` as `pivot_post_id` from `posts` inner join `post_tag` on `posts`.`id` = `post_tag`.`post_id` where `post_tag`.`tag_id` = 4922 and `posts`.`deleted_at` is null
      Bindings
      • 0: 4922
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • app/Http/Controllers/WebController.php:1362
      • app/Http/Controllers/WebController.php:735
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
    • WebController.php#743aicare_prod_new80.18msselect * from `posts` where `status` = 1 and `publish_date` <= '2025-04-27 21:57:27' and `deleted_at` is null and `content_type` = 'article' and `slug_en` != '' and `slug_en` is not null and `posts`.`deleted_at` is null order by RAND() limit 7
      Bindings
      • 0: 1
      • 1: 2025-04-27 21:57:27
      • 2: article
      • 3: 
      Hints
      • Use SELECT * only if you need all columns from table
      • ORDER BY RAND() is slow, try to avoid if you can. You can read this or this
      • The != operator is not standard. Use the <> operator to test for inequality instead.
      Backtrace
      • app/Http/Controllers/WebController.php:743
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
    • CategoryHealtTopics.php#11aicare_prod_new1.2msselect * from `categories` where (`slug` != 'penyakit-a-z' and `slug` != 'obat-a-z' and `slug` != 'pemeriksaan-a-z' and `parent_id` = '0') and `categories`.`deleted_at` is null order by `order` asc
      Bindings
      • 0: penyakit-a-z
      • 1: obat-a-z
      • 2: pemeriksaan-a-z
      • 3: 0
      Hints
      • Use SELECT * only if you need all columns from table
      • The != operator is not standard. Use the <> operator to test for inequality instead.
      Backtrace
      • app/Repositories/Categories/CategoryHealtTopics.php:11
      • app/Http/Controllers/WebController.php:744
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
    • WebController.php#748aicare_prod_new1.48msselect `healthpedia`.*, `healthpedia_post`.`post_id` as `pivot_post_id`, `healthpedia_post`.`healthpedia_id` as `pivot_healthpedia_id`, `healthpedia_post`.`created_at` as `pivot_created_at`, `healthpedia_post`.`updated_at` as `pivot_updated_at` from `healthpedia` inner join `healthpedia_post` on `healthpedia`.`id` = `healthpedia_post`.`healthpedia_id` where `healthpedia_post`.`post_id` = 9866 and `healthpedia`.`deleted_at` is null
      Bindings
      • 0: 9866
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • app/Http/Controllers/WebController.php:748
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
    • WebController.php#779aicare_prod_new15.37msupdate `posts` set `views_count` = 238 where `id` = 9866
      Bindings
      • 0: 238
      • 1: 9866
      Backtrace
      • app/Http/Controllers/WebController.php:779
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
    • ActivityLogger.php#174aicare_prod_new7.95msinsert into `activity_log` (`log_name`, `properties`, `batch_uuid`, `event`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('default', '[]', null, 'updated', 9866, 'App\\Models\\Admin\\Post', 'updated', '2025-04-27 21:57:27', '2025-04-27 21:57:27')
      Bindings
      • 0: default
      • 1: []
      • 2: 
      • 3: updated
      • 4: 9866
      • 5: App\Models\Admin\Post
      • 6: updated
      • 7: 2025-04-27 21:57:27
      • 8: 2025-04-27 21:57:27
      Backtrace
      • vendor/spatie/laravel-activitylog/src/ActivityLogger.php:174
      • vendor/spatie/laravel-activitylog/src/Traits/LogsActivity.php:88
      • app/Http/Controllers/WebController.php:779
      • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
      • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
    • single-post-healthpedia.blade.php#37aicare_prod_new950μsselect * from `users` where `users`.`id` = 18 limit 1
      Bindings
      • 0: 18
      Hints
      • Use SELECT * only if you need all columns from table
      • LIMIT without ORDER BY causes non-deterministic results, depending on the query execution plan
      Backtrace
      • view::web.v2.single-post-healthpedia:37
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    • article-popular.blade.php#15aicare_prod_new8.36msselect `categories`.*, `category_post`.`post_id` as `pivot_post_id`, `category_post`.`category_id` as `pivot_category_id`, `category_post`.`created_at` as `pivot_created_at`, `category_post`.`updated_at` as `pivot_updated_at` from `categories` inner join `category_post` on `categories`.`id` = `category_post`.`category_id` where `category_post`.`post_id` = 8543 and `categories`.`deleted_at` is null
      Bindings
      • 0: 8543
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • view::web.v2.partials.article-popular:15
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    • article-popular.blade.php#15aicare_prod_new8.47msselect `categories`.*, `category_post`.`post_id` as `pivot_post_id`, `category_post`.`category_id` as `pivot_category_id`, `category_post`.`created_at` as `pivot_created_at`, `category_post`.`updated_at` as `pivot_updated_at` from `categories` inner join `category_post` on `categories`.`id` = `category_post`.`category_id` where `category_post`.`post_id` = 8522 and `categories`.`deleted_at` is null
      Bindings
      • 0: 8522
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • view::web.v2.partials.article-popular:15
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    • article-popular.blade.php#15aicare_prod_new6.14msselect `categories`.*, `category_post`.`post_id` as `pivot_post_id`, `category_post`.`category_id` as `pivot_category_id`, `category_post`.`created_at` as `pivot_created_at`, `category_post`.`updated_at` as `pivot_updated_at` from `categories` inner join `category_post` on `categories`.`id` = `category_post`.`category_id` where `category_post`.`post_id` = 9567 and `categories`.`deleted_at` is null
      Bindings
      • 0: 9567
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • view::web.v2.partials.article-popular:15
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    • article-popular.blade.php#15aicare_prod_new9.95msselect `categories`.*, `category_post`.`post_id` as `pivot_post_id`, `category_post`.`category_id` as `pivot_category_id`, `category_post`.`created_at` as `pivot_created_at`, `category_post`.`updated_at` as `pivot_updated_at` from `categories` inner join `category_post` on `categories`.`id` = `category_post`.`category_id` where `category_post`.`post_id` = 8215 and `categories`.`deleted_at` is null
      Bindings
      • 0: 8215
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • view::web.v2.partials.article-popular:15
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    • article-popular.blade.php#15aicare_prod_new10.61msselect `categories`.*, `category_post`.`post_id` as `pivot_post_id`, `category_post`.`category_id` as `pivot_category_id`, `category_post`.`created_at` as `pivot_created_at`, `category_post`.`updated_at` as `pivot_updated_at` from `categories` inner join `category_post` on `categories`.`id` = `category_post`.`category_id` where `category_post`.`post_id` = 9293 and `categories`.`deleted_at` is null
      Bindings
      • 0: 9293
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • view::web.v2.partials.article-popular:15
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    • article-popular.blade.php#15aicare_prod_new10.16msselect `categories`.*, `category_post`.`post_id` as `pivot_post_id`, `category_post`.`category_id` as `pivot_category_id`, `category_post`.`created_at` as `pivot_created_at`, `category_post`.`updated_at` as `pivot_updated_at` from `categories` inner join `category_post` on `categories`.`id` = `category_post`.`category_id` where `category_post`.`post_id` = 9965 and `categories`.`deleted_at` is null
      Bindings
      • 0: 9965
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • view::web.v2.partials.article-popular:15
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    • article-popular.blade.php#15aicare_prod_new10.1msselect `categories`.*, `category_post`.`post_id` as `pivot_post_id`, `category_post`.`category_id` as `pivot_category_id`, `category_post`.`created_at` as `pivot_created_at`, `category_post`.`updated_at` as `pivot_updated_at` from `categories` inner join `category_post` on `categories`.`id` = `category_post`.`category_id` where `category_post`.`post_id` = 8718 and `categories`.`deleted_at` is null
      Bindings
      • 0: 8718
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • view::web.v2.partials.article-popular:15
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    • related-article.blade.php#15aicare_prod_new9.93msselect `categories`.*, `category_post`.`post_id` as `pivot_post_id`, `category_post`.`category_id` as `pivot_category_id`, `category_post`.`created_at` as `pivot_created_at`, `category_post`.`updated_at` as `pivot_updated_at` from `categories` inner join `category_post` on `categories`.`id` = `category_post`.`category_id` where `category_post`.`post_id` = 9927 and `categories`.`deleted_at` is null
      Bindings
      • 0: 9927
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • view::web.v2.partials.related-article:15
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    • related-article.blade.php#15aicare_prod_new9.62msselect `categories`.*, `category_post`.`post_id` as `pivot_post_id`, `category_post`.`category_id` as `pivot_category_id`, `category_post`.`created_at` as `pivot_created_at`, `category_post`.`updated_at` as `pivot_updated_at` from `categories` inner join `category_post` on `categories`.`id` = `category_post`.`category_id` where `category_post`.`post_id` = 9940 and `categories`.`deleted_at` is null
      Bindings
      • 0: 9940
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • view::web.v2.partials.related-article:15
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    • related-article.blade.php#15aicare_prod_new10.03msselect `categories`.*, `category_post`.`post_id` as `pivot_post_id`, `category_post`.`category_id` as `pivot_category_id`, `category_post`.`created_at` as `pivot_created_at`, `category_post`.`updated_at` as `pivot_updated_at` from `categories` inner join `category_post` on `categories`.`id` = `category_post`.`category_id` where `category_post`.`post_id` = 9991 and `categories`.`deleted_at` is null
      Bindings
      • 0: 9991
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • view::web.v2.partials.related-article:15
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    • related-article.blade.php#15aicare_prod_new8.95msselect `categories`.*, `category_post`.`post_id` as `pivot_post_id`, `category_post`.`category_id` as `pivot_category_id`, `category_post`.`created_at` as `pivot_created_at`, `category_post`.`updated_at` as `pivot_updated_at` from `categories` inner join `category_post` on `categories`.`id` = `category_post`.`category_id` where `category_post`.`post_id` = 9788 and `categories`.`deleted_at` is null
      Bindings
      • 0: 9788
      Hints
      • Use SELECT * only if you need all columns from table
      Backtrace
      • view::web.v2.partials.related-article:15
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    • web_layout.blade.php#122aicare_prod_new1.02msselect * from `pages` where `slug` = 'about-us' limit 1
      Bindings
      • 0: about-us
      Hints
      • Use SELECT * only if you need all columns from table
      • LIMIT without ORDER BY causes non-deterministic results, depending on the query execution plan
      Backtrace
      • view::layouts.v2.web_layout:122
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    • web_layout.blade.php#549aicare_prod_new1.19msselect * from `faqs` where `name_en` is not null and `slug_en` is not null limit 1
      Hints
      • Use SELECT * only if you need all columns from table
      • LIMIT without ORDER BY causes non-deterministic results, depending on the query execution plan
      Backtrace
      • view::layouts.v2.web_layout:549
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    • web_layout.blade.php#551aicare_prod_new1.26msselect * from `term_policies`
      Hints
      • Use SELECT * only if you need all columns from table
      • The SELECT statement has no WHERE clause and could examine many more rows than intended
      Backtrace
      • view::layouts.v2.web_layout:551
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:124
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/livewire/livewire/src/Mechanisms/ExtendBlade/ExtendedCompilerEngine.php:22
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:72
    App\Models\Admin\Post
    229Post.php#?
    App\Models\Admin\Category
    19Category.php#?
    App\Models\Admin\Tag
    5Tag.php#?
    App\User
    3User.php#?
    App\Models\TermPolicy
    3TermPolicy.php#?
    App\Models\Admin\Page
    1Page.php#?
    App\Models\Admin\Faq
    1Faq.php#?
        locale
        en
        _token
        gICSwe7YPxRjeYTVEO04q6fxq2PrgsotGu71feeL
        _previous
        array:1 [ "url" => "https://ai-care.atmatech.id/diseases/tips-for-overcoming-insomnia-for-people-w...
        _flash
        array:2 [ "old" => [] "new" => [] ]
        path_info
        /diseases/tips-for-overcoming-insomnia-for-people-with-diabetes-en
        status_code
        200
        
        status_text
        OK
        format
        html
        content_type
        text/html; charset=UTF-8
        request_query
        []
        
        request_request
        []
        
        request_headers
        0 of 0
        array:19 [ "accept-encoding" => array:1 [ 0 => "gzip, deflate, br, zstd" ] "sec-fetch-dest" => array:1 [ 0 => "document" ] "sec-fetch-user" => array:1 [ 0 => "?1" ] "sec-fetch-mode" => array:1 [ 0 => "navigate" ] "sec-fetch-site" => array:1 [ 0 => "none" ] "accept" => array:1 [ 0 => "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7" ] "user-agent" => array:1 [ 0 => "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" ] "upgrade-insecure-requests" => array:1 [ 0 => "1" ] "sec-ch-ua-platform" => array:1 [ 0 => ""Windows"" ] "sec-ch-ua-mobile" => array:1 [ 0 => "?0" ] "sec-ch-ua" => array:1 [ 0 => ""HeadlessChrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"" ] "cache-control" => array:1 [ 0 => "no-cache" ] "pragma" => array:1 [ 0 => "no-cache" ] "x-real-ip" => array:1 [ 0 => "3.142.240.117" ] "x-forwarded-for" => array:1 [ 0 => "3.142.240.117" ] "x-forwarded-proto" => array:1 [ 0 => "https" ] "x-forwarded-scheme" => array:1 [ 0 => "https" ] "host" => array:1 [ 0 => "ai-care.atmatech.id" ] "connection" => array:1 [ 0 => "keep-alive" ] ]
        request_cookies
        []
        
        response_headers
        0 of 0
        array:5 [ "content-type" => array:1 [ 0 => "text/html; charset=UTF-8" ] "cache-control" => array:1 [ 0 => "no-cache, private" ] "date" => array:1 [ 0 => "Sun, 27 Apr 2025 14:57:28 GMT" ] "set-cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6IjFhKzM2WDVRdmRxbDJtbTFRSTdXMWc9PSIsInZhbHVlIjoiT0dDM0xFa1o3UXFzamFPbmJlZDNnZE9USVp0UHpuelF4cEZIWVFTdnAxNHM0Q1BxV3BMelRzR1dWNDdqQzFjRStJalYyaXdBZENncVR5YjhFcWlZcVUrSVlHYTEwOUpaazBmK2tGNno2K3BEVnVKRVc1T2RBWm5WbXhXcHUvYjkiLCJtYWMiOiI5MWFhMDc5MGYxMjVhNTNhOTRhYjEwMTc5NzYwYmMwMThkMDdhZTVmOTM4NmM1MGFlMDM3NWUyMWU3Mjc1ZTk5IiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 16:57:28 GMT; Max-Age=7200; path=/; secureXSRF-TOKEN=eyJpdiI6IjFhKzM2WDVRdmRxbDJtbTFRSTdXMWc9PSIsInZhbHVlIjoiT0dDM0xFa1o3UXFzamFPbmJlZDNnZE9USVp0UHpuelF4cEZIWVFTdnAxNHM0Q1BxV3BMelRzR1dWNDdqQzFjRStJalYya" 1 => "laravel_session=eyJpdiI6InlUcnBWR0RraUQ4Q1pjaGJCT0JFL3c9PSIsInZhbHVlIjoiM05iRnBQRnJTdVRYNHRCMGpPSmhyclV0ZVVGaUpoem55cS80dmRMMkRQRm9vbzBuZVEyS0xXemVQV2E1aWJnakh2bDk1RE41SGFTZURqcjY2M3JnRG9INmRVNk9uaTNsZjIzeGt5eUZRVElZV3c3cUZIOHU1RDRNQnRndmxLRVUiLCJtYWMiOiIxZjg0NmZiMDhiYmM5OWEwMDgwNGYzMmEwNTNmNDdiZTJjZTE0YmViMjc5ZTk3ZjM2MzU2NWQxN2QzYWU4MjRhIiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 16:57:28 GMT; Max-Age=7200; path=/; httponlylaravel_session=eyJpdiI6InlUcnBWR0RraUQ4Q1pjaGJCT0JFL3c9PSIsInZhbHVlIjoiM05iRnBQRnJTdVRYNHRCMGpPSmhyclV0ZVVGaUpoem55cS80dmRMMkRQRm9vbzBuZVEyS0xXemVQV2E1aWJnakh2" ] "Set-Cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6IjFhKzM2WDVRdmRxbDJtbTFRSTdXMWc9PSIsInZhbHVlIjoiT0dDM0xFa1o3UXFzamFPbmJlZDNnZE9USVp0UHpuelF4cEZIWVFTdnAxNHM0Q1BxV3BMelRzR1dWNDdqQzFjRStJalYyaXdBZENncVR5YjhFcWlZcVUrSVlHYTEwOUpaazBmK2tGNno2K3BEVnVKRVc1T2RBWm5WbXhXcHUvYjkiLCJtYWMiOiI5MWFhMDc5MGYxMjVhNTNhOTRhYjEwMTc5NzYwYmMwMThkMDdhZTVmOTM4NmM1MGFlMDM3NWUyMWU3Mjc1ZTk5IiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 16:57:28 GMT; path=/; secureXSRF-TOKEN=eyJpdiI6IjFhKzM2WDVRdmRxbDJtbTFRSTdXMWc9PSIsInZhbHVlIjoiT0dDM0xFa1o3UXFzamFPbmJlZDNnZE9USVp0UHpuelF4cEZIWVFTdnAxNHM0Q1BxV3BMelRzR1dWNDdqQzFjRStJalYya" 1 => "laravel_session=eyJpdiI6InlUcnBWR0RraUQ4Q1pjaGJCT0JFL3c9PSIsInZhbHVlIjoiM05iRnBQRnJTdVRYNHRCMGpPSmhyclV0ZVVGaUpoem55cS80dmRMMkRQRm9vbzBuZVEyS0xXemVQV2E1aWJnakh2bDk1RE41SGFTZURqcjY2M3JnRG9INmRVNk9uaTNsZjIzeGt5eUZRVElZV3c3cUZIOHU1RDRNQnRndmxLRVUiLCJtYWMiOiIxZjg0NmZiMDhiYmM5OWEwMDgwNGYzMmEwNTNmNDdiZTJjZTE0YmViMjc5ZTk3ZjM2MzU2NWQxN2QzYWU4MjRhIiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 16:57:28 GMT; path=/; httponlylaravel_session=eyJpdiI6InlUcnBWR0RraUQ4Q1pjaGJCT0JFL3c9PSIsInZhbHVlIjoiM05iRnBQRnJTdVRYNHRCMGpPSmhyclV0ZVVGaUpoem55cS80dmRMMkRQRm9vbzBuZVEyS0xXemVQV2E1aWJnakh2" ] ]
        session_attributes
        0 of 0
        array:4 [ "locale" => "en" "_token" => "gICSwe7YPxRjeYTVEO04q6fxq2PrgsotGu71feeL" "_previous" => array:1 [ "url" => "https://ai-care.atmatech.id/diseases/tips-for-overcoming-insomnia-for-people-with-diabetes-en" ] "_flash" => array:2 [ "old" => [] "new" => [] ] ]
        ClearShow all
        Date ↕MethodURLData
        #12025-04-27 21:57:28GET/diseases/tips-for-overcoming-insomnia-for-people-with-diabetes-en51133261