• Home
  • diseases
  • Understanding Melatonin: The Key to Better Sleep and How to Naturally Increase Its Production

Understanding Melatonin: The Key to Better Sleep and How to Naturally Increase Its Production

Understanding Melatonin: The Key to Better Sleep and How to Naturally Increase Its Production

Share :


Melatonin, often dubbed the sleep hormone, is crucial for regulating sleep and wakefulness. If you frequently experience sleep disturbances, it may be due to impaired melatonin production. What are the functions of the melatonin hormone in the body, and how can we improve its production? Check out the following article.

 

What is melatonin?

Melatonin is a natural hormone produced by the pineal gland, a small gland in the brain. This hormone synchronizes circadian rhythms, which are the body's physical, mental, and behavioral changes that occur over a 24-hour period. The sleep-wake cycle is one of the most important circadian rhythms.

The pineal gland produces the highest levels of melatonin at night and the lowest during the day. This hormone is responsible for making you sleepy and allowing you to sleep soundly. Any disruption in melatonin production can disturb the circadian rhythm, leading to sleep disturbances.

 

What disrupts melatonin production?

Daily habits, as well as the foods and beverages you consume, can impact melatonin production. Factors influencing melatonin production include:

  • Exposure to blue light from gadgets

The use of electronic devices such as cell phones, tablets, or televisions before bedtime can disrupt melatonin production. These devices emit blue light, which can send signals to the brain to inhibit melatonin production, making it difficult to fall asleep.

  • Caffeine consumption at night

Caffeine has the opposite properties of melatonin. While melatonin causes drowsiness and sleep, caffeine counteracts its effects by increasing alertness and concentration, making it harder to fall asleep.

  • Age

Melatonin levels and circadian rhythms change with age, leading to a higher likelihood of insomnia or other sleep disorders in older adults.

 

Natural ways to increase melatonin production

Melatonin deficiency can cause mood disorders, frequent daytime sleepiness, nighttime wakefulness, and circadian rhythm disruptions. While melatonin supplements can help, it's best to consult a doctor before using them. Aside from taking supplements, you can naturally increase melatonin production in the following ways:

  • Getting exposed to morning sunlight

Sunlight helps maintain alertness during the day and increases melatonin production at night, improving sleep quality. Sun exposure can be achieved by sunbathing, taking morning walks, or opening blinds to let sunlight in.

  • Turn off the lights while sleeping

Melatonin production increases in dark environments. Sleeping in a dim or dark room can help your body release melatonin, aiding in sleep onset and duration. Avoid using gadgets before bed to enhance this effect

For those of you who have trouble sleeping, you should try using dim lights to sleep at night and avoid using gadgets before bedtime.

  • Avoid consuming caffeine before bedtime

Caffeine can lower melatonin levels, so it's best to limit caffeine intake to 400 mg per day (about 3–4 cups of coffee). Remember, caffeine is also found in tea, energy drinks, and chocolate.

  • Eat foods rich in melatonin

Consuming foods high in melatonin can boost your body's melatonin levels. These foods include:

    • Eggs, fish, and milk
    • Nuts and seeds
    • Mushrooms
    • Dark green vegetables
    • Fruits such as grapes, bananas, and pineapple

 

Melatonin is essential for regulating your sleep/wake cycles. A deficiency in melatonin can lead to insomnia and mood disorders. If you suspect you have low melatonin levels, consult a doctor for advice.

If you need medical advice or consultation, you can either visit a doctor or make use of the consultation features that are available in the Ai Care application by downloading the Ai Care application from the App Store or Play Store.

 

Looking for more information about other diseases? Click here!

 

 

Writer : Ratih AI Care
Editor :
  • Sean Edbert Lim, MBBS
Last Updated : Wednesday, 26 June 2024 | 03:58

Cleveland Clinic. Melatonin. Available from: https://my.clevelandclinic.org/health/articles/23411-melatonin

Bedosky, L. (2023). Health Benefits of Melatonin. Available from: https://www.health.com/melatonin-7488235

Mayo Clinic. Melatonin. Available from: https://www.mayoclinic.org/drugs-supplements-melatonin/art-20363071#

Ajmera, R. (2023). Melatonin: Benefits, Uses, Side Effects and Dosage. Available from: https://www.healthline.com/nutrition/melatonin

Boyers, L. (2023). 6 Natural Ways to Boost Melatonin. Available from: https://www.goodrx.com/well-being/sleep/natural-melatonin

Suni, E. (2023). Light and Sleep. Available from: https://www.sleepfoundation.org/bedroom-environment/light-and-sleep

NHS. Common questions about melatonin. Available from: https://www.nhs.uk/medicines/melatonin/common-questions-about-melatonin/# 

Request history8.1.29PHP Version857msRequest Duration5MBMemory UsageGET {category}/{slug}Route
  • warninglog[19:25:55] LOG.warning: str_contains(): Passing null to parameter #1 ($haystack) of type string is d...
  • warninglog[19:25:55] LOG.warning: str_contains(): Passing null to parameter #1 ($haystack) of type string is d...
  • infolog[19:25:55] LOG.info: Attempting to authenticate with: { "username": "administrator", "url": ...
  • Booting (271ms)time
  • Application (586ms)time
  • 1 x Application (68.37%)
    586ms
    1 x Booting (31.63%)
    271ms
    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
    32 statements were executed373ms
    • WebController.php#656aicare_prod_new900μ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_new64.62msselect * from `posts` where (`slug` = 'understanding-melatonin-the-key-to-better-sleep-and-how-to-naturally-increase-its-production-en' or `slug_en` = 'understanding-melatonin-the-key-to-better-sleep-and-how-to-naturally-increase-its-production-en') and `posts`.`deleted_at` is null limit 1
      Bindings
      • 0: understanding-melatonin-the-key-to-better-sleep-and-how-to-naturally-increase-its-production-en
      • 1: understanding-melatonin-the-key-to-better-sleep-and-how-to-naturally-increase-its-production-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_new48.77msselect * from `posts` where (`slug` = 'understanding-melatonin-the-key-to-better-sleep-and-how-to-naturally-increase-its-production-en' or `slug_en` = 'understanding-melatonin-the-key-to-better-sleep-and-how-to-naturally-increase-its-production-en') and `status` = 1 and `publish_date` <= '2025-04-28 19:25:55' and `deleted_at` is null and `posts`.`deleted_at` is null limit 1
      Bindings
      • 0: understanding-melatonin-the-key-to-better-sleep-and-how-to-naturally-increase-its-production-en
      • 1: understanding-melatonin-the-key-to-better-sleep-and-how-to-naturally-increase-its-production-en
      • 2: 1
      • 3: 2025-04-28 19:25:55
      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.08msselect `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 (9403)
      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_new990μsselect `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 (9403)
      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.05msselect `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 (9403) 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_new680μsselect * 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_new16.29msselect `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` = 9403
      Bindings
      • 0: 9403
      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_new13.44msselect `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` = 56 and `posts`.`deleted_at` is null
      Bindings
      • 0: 56
      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.18msselect `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_new12.19msselect `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` = 3412 and `posts`.`deleted_at` is null
      Bindings
      • 0: 3412
      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_new12.28msselect `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` = 5376 and `posts`.`deleted_at` is null
      Bindings
      • 0: 5376
      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_new79.65msselect * from `posts` where `status` = 1 and `publish_date` <= '2025-04-28 19:25:55' 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-28 19:25:55
      • 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.23msselect * 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.54msselect `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` = 9403 and `healthpedia`.`deleted_at` is null
      Bindings
      • 0: 9403
      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_new8.86msupdate `posts` set `views_count` = 278 where `id` = 9403
      Bindings
      • 0: 278
      • 1: 9403
      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_new4.82msinsert into `activity_log` (`log_name`, `properties`, `batch_uuid`, `event`, `subject_id`, `subject_type`, `description`, `updated_at`, `created_at`) values ('default', '[]', null, 'updated', 9403, 'App\\Models\\Admin\\Post', 'updated', '2025-04-28 19:25:55', '2025-04-28 19:25:55')
      Bindings
      • 0: default
      • 1: []
      • 2: 
      • 3: updated
      • 4: 9403
      • 5: App\Models\Admin\Post
      • 6: updated
      • 7: 2025-04-28 19:25:55
      • 8: 2025-04-28 19:25:55
      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_new1.27msselect * 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_new7.4msselect `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` = 9642 and `categories`.`deleted_at` is null
      Bindings
      • 0: 9642
      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_new7.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` = 817 and `categories`.`deleted_at` is null
      Bindings
      • 0: 817
      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_new7.25msselect `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` = 4198 and `categories`.`deleted_at` is null
      Bindings
      • 0: 4198
      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_new7.23msselect `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` = 8289 and `categories`.`deleted_at` is null
      Bindings
      • 0: 8289
      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_new7.51msselect `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` = 9267 and `categories`.`deleted_at` is null
      Bindings
      • 0: 9267
      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_new7.25msselect `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` = 9815 and `categories`.`deleted_at` is null
      Bindings
      • 0: 9815
      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_new7.35msselect `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` = 9223 and `categories`.`deleted_at` is null
      Bindings
      • 0: 9223
      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_new7.39msselect `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` = 9862 and `categories`.`deleted_at` is null
      Bindings
      • 0: 9862
      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_new7.5msselect `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` = 7869 and `categories`.`deleted_at` is null
      Bindings
      • 0: 7869
      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_new7.39msselect `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` = 7870 and `categories`.`deleted_at` is null
      Bindings
      • 0: 7870
      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_new7.35msselect `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` = 9018 and `categories`.`deleted_at` is null
      Bindings
      • 0: 9018
      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.35msselect * 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_new960μsselect * 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.22msselect * 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
    92Post.php#?
    App\Models\Admin\Category
    19Category.php#?
    App\Models\Admin\Tag
    4Tag.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
        1JEaRcFBfZ6R9gNKXWiozW36DGK5V7cV50zkilHR
        _previous
        array:1 [ "url" => "https://ai-care.atmatech.id/diseases/understanding-melatonin-the-key-to-better...
        _flash
        array:2 [ "old" => [] "new" => [] ]
        path_info
        /diseases/understanding-melatonin-the-key-to-better-sleep-and-how-to-naturally-increase-its-production-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.144.79.121" ] "x-forwarded-for" => array:1 [ 0 => "3.144.79.121" ] "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 => "Mon, 28 Apr 2025 12:25:55 GMT" ] "set-cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6IjZBLzZSMzVHQXdQaXVVOTVCOVNUTUE9PSIsInZhbHVlIjoiTFc2NXUxV3h3M1VhVTBnTmw4TVZ0elBMTmh0TkFIbWhUb0JrR2RCSE8yUXhkVWJVWWtrREdoajZrS2dSYXJqRml5NC83ZFlDd2R4bHhrV3YrbDFZLy9LcWh3MGRUeHo2RHVxN2VzenhoU0lOUU1HZXg5cUhCYUR0UVhmMXhJUTgiLCJtYWMiOiJiY2NkNjAxZWM4YmJmYjUxZTY2MzE5ZTUzNmZkMWU2YmViMGRiY2M3MDdjNzI4YzQ0MWEzZjc4NjM3ODI3NWZmIiwidGFnIjoiIn0%3D; expires=Mon, 28 Apr 2025 14:25:55 GMT; Max-Age=7200; path=/; secureXSRF-TOKEN=eyJpdiI6IjZBLzZSMzVHQXdQaXVVOTVCOVNUTUE9PSIsInZhbHVlIjoiTFc2NXUxV3h3M1VhVTBnTmw4TVZ0elBMTmh0TkFIbWhUb0JrR2RCSE8yUXhkVWJVWWtrREdoajZrS2dSYXJqRml5NC83Z" 1 => "laravel_session=eyJpdiI6Ik9BSm0zMDRvRXdkR3Vja3kyWURUZ2c9PSIsInZhbHVlIjoiVXdHU2ZpeTZaSm4zYXZ2WUc5UXpHa0N4YytDb25PQWV0RU45eEw0dkxReEtpOCsrbzBqak9LS0FLN044NzFnbjRXTmRKZ01sVkpkNDRJaUp2YmV5WmRpVnY2Z3pLNUJmWVhOZVE1ZjB4bERLSzVEYWJGb1lHMWxxSXRleVl0WnoiLCJtYWMiOiIyODY3MmQ4MTVkN2IyNTIwNDVmMTQ3NWIwMjkwNWEwNDUwMDQwNDhiOGRlM2U0M2VjMGYwZjgxNjVkMTFkMmExIiwidGFnIjoiIn0%3D; expires=Mon, 28 Apr 2025 14:25:55 GMT; Max-Age=7200; path=/; httponlylaravel_session=eyJpdiI6Ik9BSm0zMDRvRXdkR3Vja3kyWURUZ2c9PSIsInZhbHVlIjoiVXdHU2ZpeTZaSm4zYXZ2WUc5UXpHa0N4YytDb25PQWV0RU45eEw0dkxReEtpOCsrbzBqak9LS0FLN044NzFnbjRX" ] "Set-Cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6IjZBLzZSMzVHQXdQaXVVOTVCOVNUTUE9PSIsInZhbHVlIjoiTFc2NXUxV3h3M1VhVTBnTmw4TVZ0elBMTmh0TkFIbWhUb0JrR2RCSE8yUXhkVWJVWWtrREdoajZrS2dSYXJqRml5NC83ZFlDd2R4bHhrV3YrbDFZLy9LcWh3MGRUeHo2RHVxN2VzenhoU0lOUU1HZXg5cUhCYUR0UVhmMXhJUTgiLCJtYWMiOiJiY2NkNjAxZWM4YmJmYjUxZTY2MzE5ZTUzNmZkMWU2YmViMGRiY2M3MDdjNzI4YzQ0MWEzZjc4NjM3ODI3NWZmIiwidGFnIjoiIn0%3D; expires=Mon, 28-Apr-2025 14:25:55 GMT; path=/; secureXSRF-TOKEN=eyJpdiI6IjZBLzZSMzVHQXdQaXVVOTVCOVNUTUE9PSIsInZhbHVlIjoiTFc2NXUxV3h3M1VhVTBnTmw4TVZ0elBMTmh0TkFIbWhUb0JrR2RCSE8yUXhkVWJVWWtrREdoajZrS2dSYXJqRml5NC83Z" 1 => "laravel_session=eyJpdiI6Ik9BSm0zMDRvRXdkR3Vja3kyWURUZ2c9PSIsInZhbHVlIjoiVXdHU2ZpeTZaSm4zYXZ2WUc5UXpHa0N4YytDb25PQWV0RU45eEw0dkxReEtpOCsrbzBqak9LS0FLN044NzFnbjRXTmRKZ01sVkpkNDRJaUp2YmV5WmRpVnY2Z3pLNUJmWVhOZVE1ZjB4bERLSzVEYWJGb1lHMWxxSXRleVl0WnoiLCJtYWMiOiIyODY3MmQ4MTVkN2IyNTIwNDVmMTQ3NWIwMjkwNWEwNDUwMDQwNDhiOGRlM2U0M2VjMGYwZjgxNjVkMTFkMmExIiwidGFnIjoiIn0%3D; expires=Mon, 28-Apr-2025 14:25:55 GMT; path=/; httponlylaravel_session=eyJpdiI6Ik9BSm0zMDRvRXdkR3Vja3kyWURUZ2c9PSIsInZhbHVlIjoiVXdHU2ZpeTZaSm4zYXZ2WUc5UXpHa0N4YytDb25PQWV0RU45eEw0dkxReEtpOCsrbzBqak9LS0FLN044NzFnbjRX" ] ]
        session_attributes
        0 of 0
        array:4 [ "locale" => "en" "_token" => "1JEaRcFBfZ6R9gNKXWiozW36DGK5V7cV50zkilHR" "_previous" => array:1 [ "url" => "https://ai-care.atmatech.id/diseases/understanding-melatonin-the-key-to-better-sleep-and-how-to-naturally-increase-its-production-en" ] "_flash" => array:2 [ "old" => [] "new" => [] ] ]
        ClearShow all
        Date ↕MethodURLData
        #12025-04-28 19:25:55GET/diseases/understanding-melatonin-the-key-to-better-sleep-and-how-to-naturally-increase-its-production-en31132123