×

Replace bad habits with positive ones

Replace bad habits with positive ones
Replace bad habits with positive ones (Photo: iStock)

Habits play a significant role in shaping our lives, dictating everything from daily routines to long-term outcomes. While some habits are good, others are not. They may not be as serious, but they are still bad.

These bad habits can range from unhealthy eating and smoking to procrastination and excessive screen time. We are all guilty of falling short of our true potential, but what do we do about it?

Before we get into the psychology of it and how to break free, it is important to understand that these bad habits are particularly difficult to break because of their ingrained nature and the psychological reinforcement they provide. But the good news is that overcoming these harmful behaviours is not only possible, it is essential for improving your health, productivity and quality of life.

The foundation of every habit, good or bad, lies in its neurological and psychological roots. According to Charles Duhigg, author of 'The Power of Habit', habits are formed through a three-step process.

These are cue, routine and reward. The habit loop begins when a cue or trigger prompts a behaviour, in this case, routine, which in turn leads to a reward that reinforces the habit. Over time, this loop becomes automatic and the behaviour is performed without conscious thought.

Breaking a bad habit therefore requires disrupting this ‘loop’. It’s not enough to simply remove the habit, you have to identify the underlying cues and rewards and then replace the routine with a healthier or more constructive behaviour. Easy on paper, but is it easy in practice? Yes and no.

One of the critical challenges in breaking bad habits is the power of reinforcement. Bad habits like smoking or blowing your credit on unnecessary things like clothes or travel often provide immediate gratification, making them difficult to resist. Each time the habit is performed, the brain releases dopamine, a neurotransmitter associated with pleasure and reward. This chemical response reinforces the habit, creating a cycle of addiction.

Overcoming such habits requires a strong will to replace the immediate reward with a more positive reinforcement. For example, if you’re trying to quit smoking, you can replace it with physical exercise, which stimulates dopamine release in addition to the long-term health benefits.

Self-awareness is key to successfully breaking a bad habit. You must first recognise the cues that trigger the behaviour, whether external, such as environmental factors or social situations, or internal, such as stress and boredom. Once the cues are understood, the next step is to implement a strategy to replace those routines with a healthier alternative.

Request history8.1.26PHP Version1.26sRequest Duration19MBMemory UsageGET {category}/article/{id}/{slug}Route
  • warninglog[09:31:09] LOG.warning: Optional parameter $count declared before required parameter $tags is implic...
  • warninglog[09:31:09] LOG.warning: Optional parameter $count declared before required parameter $tags is implic...
  • Booting (62.4ms)time
  • Application (1.2s)time
  • 1 x Application (95.06%)
    1.20s
    1 x Booting (4.94%)
    62.40ms
    11 templates were rendered
    • 1x mainsite.articlearticle.blade.php#?blade
    • 1x mainsite.partials.topsectionsubscribetopsectionsubscribe.blade.php#?blade
    • 1x common.vocalizedvocalized.blade.php#?blade
    • 1x mainsite.partials.footerfooter.blade.php#?blade
    • 1x mainsite.layouts.appapp.blade.php#?blade
    • 1x mainsite.partials.metasmetas.blade.php#?blade
    • 1x mainsite.partials.topbartopbar.blade.php#?blade
    • 1x mainsite.partials.logo_sectionlogo_section.blade.php#?blade
    • 1x mainsite.partials.menumenu.blade.php#?blade
    • 1x mainsite.partials.streamingstreaming.blade.php#?blade
    • 1x mainsite.partials.stickybottomstickybottom.blade.php#?blade
    uri
    GET {category}/article/{id}/{slug}
    middleware
    web
    controller
    App\Http\Controllers\MainsiteController@article
    namespace
    prefix
    where
    file
    app/Http/Controllers/MainsiteController.php:610-1128
    38 statements were executed (7 duplicates)Show only duplicates409ms
    • Articles.php#513standard_digital_mainConnection Established
      Backtrace
      • app/Utils/Articles.php:513
      • app/Http/Controllers/MainsiteController.php:657
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:658
    • Articles.php#520standard_digital_main4.96msselect `id`, `site_id`, `article_category_id`, `title`, `long_title`, `thumbnail_url`, `story`, `published_at`, `premium`, `keywords`, `summary` from `articles` where `id` = '2001514912' and `published_at` <= '2025-03-31 09:31:09' and `deleted_at` is null
      Bindings
      • 0: 2001514912
      • 1: 2025-03-31 09:31:09
      Backtrace
      • app/Utils/Articles.php:520
      • app/Http/Controllers/MainsiteController.php:657
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:658
    • Articles.php#1435standard_digital_main1.43msselect * from `days_quote` where `deleted_at` is null and `quote_day` = '2025-03-31'
      Bindings
      • 0: 2025-03-31
      Backtrace
      • app/Utils/Articles.php:1435
      • app/Http/Controllers/MainsiteController.php:660
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:661
    • Builder.php#20standard_digital_main1.31msselect `authors`.*, `article_authors`.`article_id` as `pivot_article_id`, `article_authors`.`author_id` as `pivot_author_id` from `authors` inner join `article_authors` on `authors`.`id` = `article_authors`.`author_id` where `article_authors`.`article_id` = 2001514912 and `authors`.`deleted_at` is null
      Bindings
      • 0: 2001514912
      Backtrace
      • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:20
      • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:103
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:84
      • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:21
    • Articles.php#147standard_digital_main850μsselect `id` from `article_categories` where `site_id` = 1 and `id` = 416 or `parent_id` = 416 and `deleted_at` is null
      Bindings
      • 0: 1
      • 1: 416
      • 2: 416
      Backtrace
      • app/Utils/Articles.php:147
      • app/Http/Controllers/MainsiteController.php:727
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:728
    • Articles.php#164standard_digital_main920μsselect `id`, `article_category_id`, `title`, `thumbnail_url`, `published_at`, `premium` from `articles` where 0 = 1 and `site_id` = 1 and `deleted_at` is null and `published_at` <= '2025-03-31 09:31:09' order by `published_at` desc, `list_order` asc, `parent_category_list_order` asc limit 10 offset 0
      Bindings
      • 0: 1
      • 1: 2025-03-31 09:31:09
      Backtrace
      • app/Utils/Articles.php:164
      • app/Http/Controllers/MainsiteController.php:727
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:728
    • Articles.php#53standard_digital_main820μsselect `id`, `name`, `short_name`, `parent_id`, `site_id` from `article_categories` where `id` = 416
      Bindings
      • 0: 416
      Backtrace
      • app/Utils/Articles.php:53
      • app/Utils/Articles.php:338
      • app/Http/Controllers/MainsiteController.php:737
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
    • Articles.php#53standard_digital_main730μsselect `id`, `name`, `short_name`, `parent_id`, `site_id` from `article_categories` where `id` is null
      Backtrace
      • app/Utils/Articles.php:53
      • app/Utils/Articles.php:343
      • app/Http/Controllers/MainsiteController.php:737
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
    • Articles.php#55standard_digital_mainConnection Established
      Backtrace
      • app/Utils/Articles.php:55
      • app/Utils/Articles.php:343
      • app/Http/Controllers/MainsiteController.php:737
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
    • Articles.php#55standard_digital_main3.99msselect `id`, `name`, `short_name`, `parent_id`, `site_id` from `article_categories` where `id` is null
      Backtrace
      • app/Utils/Articles.php:55
      • app/Utils/Articles.php:343
      • app/Http/Controllers/MainsiteController.php:737
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
    • Articles.php#57standard_digital_mainConnection Established
      Backtrace
      • app/Utils/Articles.php:57
      • app/Utils/Articles.php:343
      • app/Http/Controllers/MainsiteController.php:737
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
    • Articles.php#57standard_digital_main6.54msselect `id`, `name`, `short_name`, `parent_id`, `site_id` from `article_categories` where `id` is null
      Backtrace
      • app/Utils/Articles.php:57
      • app/Utils/Articles.php:343
      • app/Http/Controllers/MainsiteController.php:737
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
    • Articles.php#60standard_digital_main3.02msselect `id`, `name`, `short_name`, `parent_id`, `site_id` from `article_categories` where `refer_id` is null
      Backtrace
      • app/Utils/Articles.php:60
      • app/Utils/Articles.php:343
      • app/Http/Controllers/MainsiteController.php:737
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
    • Articles.php#688standard_digital_main131msselect `id`, `site_id`, `article_category_id`, `title`, `thumbnail_url`, `story`, `published_at`, `premium` from `articles` where (`keywords` LIKE '%[\"Living\",\"Wellness\",\"Mental Health\"]%') and `site_id` = 1 and `published_at` <= '2025-03-31 09:31:09' and `deleted_at` is null and `id` not in ('2001514912') order by `published_at` desc limit 4 offset 0
      Bindings
      • 0: %["Living","Wellness","Mental Health"]%
      • 1: 1
      • 2: 2025-03-31 09:31:09
      • 3: 2001514912
      Backtrace
      • app/Utils/Articles.php:688
      • app/Http/Controllers/MainsiteController.php:821
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:822
    • Articles.php#424standard_digital_main103msselect `id`, `article_category_id`, `title`, `thumbnail_url`, `published_at`, `premium` from `articles` where (`site_id` = 1 or `site_id` = 16 or `site_id` = 20) and `deleted_at` is null and `published_at` <= '2025-03-31 09:31:09' and `published_at` >= '2025-03-31 08:31:09' order by RAND(), `published_at` desc, `homepage_list_order` asc, `list_order` asc limit 4 offset 0
      Bindings
      • 0: 1
      • 1: 16
      • 2: 20
      • 3: 2025-03-31 09:31:09
      • 4: 2025-03-31 08:31:09
      Backtrace
      • app/Utils/Articles.php:424
      • app/Http/Controllers/MainsiteController.php:825
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:826
    • Articles.php#147standard_digital_main1.18msselect `id` from `article_categories` where `site_id` = 1 and `id` = 480 or `parent_id` = 480 and `deleted_at` is null
      Bindings
      • 0: 1
      • 1: 480
      • 2: 480
      Backtrace
      • app/Utils/Articles.php:147
      • app/Http/Controllers/MainsiteController.php:829
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:830
    • Articles.php#164standard_digital_main1.06msselect `id`, `article_category_id`, `title`, `thumbnail_url`, `published_at`, `premium` from `articles` where `article_category_id` in (480, 481, 482, 719) and `site_id` = 1 and `deleted_at` is null and `published_at` <= '2025-03-31 09:31:09' order by `published_at` desc, `list_order` asc, `parent_category_list_order` asc limit 4 offset 0
      Bindings
      • 0: 480
      • 1: 481
      • 2: 482
      • 3: 719
      • 4: 1
      • 5: 2025-03-31 09:31:09
      Backtrace
      • app/Utils/Articles.php:164
      • app/Http/Controllers/MainsiteController.php:829
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:830
    • Articles.php#164standard_digital_main1.11msselect `id`, `name`, `parent_id` from `article_categories` where `article_categories`.`id` in (480, 482)
      Backtrace
      • app/Utils/Articles.php:164
      • app/Http/Controllers/MainsiteController.php:829
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:830
    • Articles.php#753standard_digital_main1.1msselect `id`, `article_category_id`, `title`, `thumbnail_url`, `published_at`, `premium` from `articles` where (`premium` = 1 or `article_category_id` = 486) and `site_id` = '1' and `deleted_at` is null and `published_at` <= '2025-03-31 09:31:09' and `homepage_list_order` is not null order by `published_at` desc, `homepage_list_order` asc, `list_order` asc limit 4 offset 0
      Bindings
      • 0: 1
      • 1: 486
      • 2: 1
      • 3: 2025-03-31 09:31:09
      Backtrace
      • app/Utils/Articles.php:753
      • app/Http/Controllers/MainsiteController.php:837
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:838
    • Articles.php#753standard_digital_main1.31msselect `id`, `name`, `parent_id` from `article_categories` where `article_categories`.`id` in (41, 588)
      Backtrace
      • app/Utils/Articles.php:753
      • app/Http/Controllers/MainsiteController.php:837
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:838
    • Articles.php#819standard_digital_main3.39msselect `id`, `site_id`, `article_category_id`, `title`, `thumbnail_url`, `story`, `published_at`, `premium` from `articles` where `id` < '2001514912' and `site_id` = 1 and `published_at` <= '2025-03-31 09:31:09' and `deleted_at` is null order by `id` desc limit 1
      Bindings
      • 0: 2001514912
      • 1: 1
      • 2: 2025-03-31 09:31:09
      Backtrace
      • app/Utils/Articles.php:819
      • app/Http/Controllers/MainsiteController.php:841
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:842
    • Articles.php#819standard_digital_main790μsselect `id`, `name`, `parent_id` from `article_categories` where `article_categories`.`id` in (12)
      Backtrace
      • app/Utils/Articles.php:819
      • app/Http/Controllers/MainsiteController.php:841
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:842
    • Articles.php#865standard_digital_main1.16msselect `id`, `site_id`, `article_category_id`, `title`, `thumbnail_url`, `story`, `published_at`, `premium` from `articles` where `id` > '2001514912' and `site_id` = 1 and `deleted_at` is null and `published_at` <= '2025-03-31 09:31:09' limit 1
      Bindings
      • 0: 2001514912
      • 1: 1
      • 2: 2025-03-31 09:31:09
      Backtrace
      • app/Utils/Articles.php:865
      • app/Http/Controllers/MainsiteController.php:841
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:842
    • Articles.php#865standard_digital_main800μsselect `id`, `name`, `parent_id` from `article_categories` where `article_categories`.`id` in (13)
      Backtrace
      • app/Utils/Articles.php:865
      • app/Http/Controllers/MainsiteController.php:841
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:842
    • Articles.php#1288standard_digital_main1.91msselect `id`, `site_id`, `article_category_id`, `title`, `thumbnail_url`, `story`, `published_at`, `premium` from `articles` where `published_at` <= '2025-03-31 09:31:09' and `article_category_id` = 416 and `site_id` = 1 and `id` not in ('2001514912') order by `homepage_list_order` asc, `published_at` desc limit 6 offset 0
      Bindings
      • 0: 2025-03-31 09:31:09
      • 1: 416
      • 2: 1
      • 3: 2001514912
      Backtrace
      • app/Utils/Articles.php:1288
      • app/Http/Controllers/MainsiteController.php:845
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:846
    • Builder.php#20standard_digital_main970μsselect `videos`.`id`, `videos`.`video_category_id`, `videos`.`title`, `videos`.`video_url`, `videos`.`description`, `videos`.`published_at`, `videos`.`thumbnail_url` from `videos` inner join `video_categories` on `video_categories`.`id` = `videos`.`video_category_id` where (`keywords` LIKE '%[\"Living\",\"Wellness\",\"Mental Health\"]%') and `videos`.`deleted_at` is null and `video_categories`.`video_type_id` = 1 order by `published_at` desc limit 3 offset 0
      Bindings
      • 0: %["Living","Wellness","Mental Health"]%
      • 1: 1
      Backtrace
      • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:20
      • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:103
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:84
      • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:21
    • Articles.php#3841standard_digital_main860μsselect count(std_trend_article_id) as count, std_trend_article_id from `std_article_trends` group by `std_trend_article_id` order by `count` desc limit 20
      Backtrace
      • app/Utils/Articles.php:3841
      • app/Http/Controllers/MainsiteController.php:853
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:854
    • Articles.php#3867standard_digital_main940μsselect `id`, `article_category_id`, `title`, `thumbnail_url`, `published_at`, `premium` from `articles` where `id` in (2001515110, 2001515124, 2001515112, 2001249065, 2001515107, 2001514989, 2001515080, 2001515083, 2001515044, 2001475864, 2001515127, 2001514967, 2001514911, 2001514800, 2000229209, 2001515106, 2001515102, 2001514960, 2001515092, 2001302241) and `deleted_at` is null and `published_at` <= '2025-03-31 09:31:09' and `homepage_list_order` is not null order by `published_at` desc, `homepage_list_order` asc, `list_order` asc limit 5
      Bindings
      • 0: 2001515110
      • 1: 2001515124
      • 2: 2001515112
      • 3: 2001249065
      • 4: 2001515107
      • 5: 2001514989
      • 6: 2001515080
      • 7: 2001515083
      • 8: 2001515044
      • 9: 2001475864
      • 10: 2001515127
      • 11: 2001514967
      • 12: 2001514911
      • 13: 2001514800
      • 14: 2000229209
      • 15: 2001515106
      • 16: 2001515102
      • 17: 2001514960
      • 18: 2001515092
      • 19: 2001302241
      • 20: 2025-03-31 09:31:09
      Backtrace
      • app/Utils/Articles.php:3867
      • app/Http/Controllers/MainsiteController.php:853
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:854
    • Articles.php#3867standard_digital_main840μsselect `id`, `name`, `parent_id` from `article_categories` where `article_categories`.`id` in (25, 588)
      Backtrace
      • app/Utils/Articles.php:3867
      • app/Http/Controllers/MainsiteController.php:853
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • app/Http/Controllers/MainsiteController.php:854
    • CookieTool.php#185standard_digital_main920μsselect * from `settings` where `meta_name` = 'article_age' limit 1
      Bindings
      • 0: article_age
      Backtrace
      • app/Utils/CookieTool.php:185
      • app/Http/Controllers/MainsiteController.php:870
      • 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
    • helper.php#424standard_digital_main1.87msselect * from article_categories where id = '416'
      Backtrace
      • app/Library/helper.php:424
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:70
      • vendor/laravel/framework/src/Illuminate/View/View.php:195
    • helper.php#424standard_digital_main890μsselect * from article_categories where id = '416'
      Backtrace
      • app/Library/helper.php:424
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:70
      • vendor/laravel/framework/src/Illuminate/View/View.php:195
    • helper.php#424standard_digital_main1.14msselect * from article_categories where id = '416'
      Backtrace
      • app/Library/helper.php:424
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:70
      • vendor/laravel/framework/src/Illuminate/View/View.php:195
    • helper.php#424standard_digital_main1.05msselect * from article_categories where id = '416'
      Backtrace
      • app/Library/helper.php:424
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:70
      • vendor/laravel/framework/src/Illuminate/View/View.php:195
    • Articles.php#1350standard_digital_main118msselect * from `articles` where `deleted_at` is null and `published_at` <= '2025-03-31 09:31:10' and (`keywords` like '%Living%' or `keywords` like '%Wellness%' or `keywords` like '%Mental Health%') and (`site_id` = 1 or `site_id` = 16 or `site_id` = 20) and `id` <> '2001514912' order by `published_at` desc limit 3
      Bindings
      • 0: 2025-03-31 09:31:10
      • 1: %Living%
      • 2: %Wellness%
      • 3: %Mental Health%
      • 4: 1
      • 5: 16
      • 6: 20
      • 7: 2001514912
      Backtrace
      • app/Utils/Articles.php:1350
      • app/Utils/Articles.php:1674
      • view::mainsite.article:568
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
    • Builder.php#20standard_digital_main2.25msselect `authors`.*, `article_authors`.`article_id` as `pivot_article_id`, `article_authors`.`author_id` as `pivot_author_id` from `authors` inner join `article_authors` on `authors`.`id` = `article_authors`.`author_id` where `article_authors`.`article_id` = 2001515128 and `authors`.`deleted_at` is null
      Bindings
      • 0: 2001515128
      Backtrace
      • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:20
      • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:103
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:84
      • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:21
    • Builder.php#20standard_digital_main1.89msselect `authors`.*, `article_authors`.`article_id` as `pivot_article_id`, `article_authors`.`author_id` as `pivot_author_id` from `authors` inner join `article_authors` on `authors`.`id` = `article_authors`.`author_id` where `article_authors`.`article_id` = 2001515126 and `authors`.`deleted_at` is null
      Bindings
      • 0: 2001515126
      Backtrace
      • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:20
      • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:103
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:84
      • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:21
    • Builder.php#20standard_digital_main1.11msselect `authors`.*, `article_authors`.`article_id` as `pivot_article_id`, `article_authors`.`author_id` as `pivot_author_id` from `authors` inner join `article_authors` on `authors`.`id` = `article_authors`.`author_id` where `article_authors`.`article_id` = 2001515127 and `authors`.`deleted_at` is null
      Bindings
      • 0: 2001515127
      Backtrace
      • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:20
      • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:103
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:84
      • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:21
    • Builder.php#20standard_digital_main1.14msselect `authors`.*, `article_authors`.`article_id` as `pivot_article_id`, `article_authors`.`author_id` as `pivot_author_id` from `authors` inner join `article_authors` on `authors`.`id` = `article_authors`.`author_id` where `article_authors`.`article_id` = 2001515110 and `authors`.`deleted_at` is null
      Bindings
      • 0: 2001515110
      Backtrace
      • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:20
      • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:103
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:84
      • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:21
    • Builder.php#20standard_digital_main1.23msselect `authors`.*, `article_authors`.`article_id` as `pivot_article_id`, `article_authors`.`author_id` as `pivot_author_id` from `authors` inner join `article_authors` on `authors`.`id` = `article_authors`.`author_id` where `article_authors`.`article_id` = 2001515101 and `authors`.`deleted_at` is null
      Bindings
      • 0: 2001515101
      Backtrace
      • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:20
      • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:103
      • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
      • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:84
      • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:21
    • app.blade.php#825standard_digital_main1.21msselect * from `favourite_topics` where `status` = 1
      Bindings
      • 0: 1
      Backtrace
      • view::mainsite.layouts.app:825
      • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:70
      • vendor/laravel/framework/src/Illuminate/View/View.php:195
    App\Models\Category
    373Category.php#?
    App\Models\Trending
    20Trending.php#?
    App\Models\Article
    19Article.php#?
    App\Topic
    16Topic.php#?
    App\Models\Author
    14Author.php#?
        _token
        hF4Eg9mt2RGObHp1sDCev9rbcte1kT7E8RaELMgt
        offset
        0
        _previous
        array:1 [ "url" => "http://www.standardmedia.co.ke/main-staging/wellness/article/2001514912/replac...
        _flash
        array:2 [ "old" => [] "new" => [] ]
        path_info
        /wellness/article/2001514912/replace-bad-habits-with-positive-ones
        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:23 [ "cf-ray" => array:1 [ 0 => "928dcd4c1e4a8101-EWR" ] "x-forwarded-for" => array:1 [ 0 => "18.218.155.110" ] "host" => array:1 [ 0 => "www.standardmedia.co.ke" ] "cf-connecting-ip" => array:1 [ 0 => "18.218.155.110" ] "accept-encoding" => array:1 [ 0 => "gzip, br" ] "priority" => array:1 [ 0 => "u=0, i" ] "x-forwarded-proto" => array:1 [ 0 => "https" ] "sec-fetch-dest" => array:1 [ 0 => "document" ] "sec-fetch-user" => array:1 [ 0 => "?1" ] "cf-visitor" => array:1 [ 0 => "{"scheme":"https"}" ] "cf-ipcountry" => array:1 [ 0 => "US" ] "sec-fetch-mode" => array:1 [ 0 => "navigate" ] "cdn-loop" => array:1 [ 0 => "cloudflare; loops=1" ] "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" ] "connection" => array:1 [ 0 => "Keep-Alive" ] "user-agent" => array:1 [ 0 => "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" ] "pragma" => array:1 [ 0 => "no-cache" ] "cache-control" => array:1 [ 0 => "no-cache" ] "sec-ch-ua" => array:1 [ 0 => ""HeadlessChrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"" ] "sec-ch-ua-mobile" => array:1 [ 0 => "?0" ] "sec-ch-ua-platform" => array:1 [ 0 => ""Windows"" ] "upgrade-insecure-requests" => array:1 [ 0 => "1" ] ]
        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, 31 Mar 2025 06:31:10 GMT" ] "set-cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6IjZFVE8vbnY4R09TaUdrdUpaWUpieVE9PSIsInZhbHVlIjoiNTRLVEhFdUtGckpMMzBiYnJXY1dlb2lGL1BYQmxldGZVdHlrdkdYa2JvbDQ0WHQ2bTdpL0dtVkpOLzlMei9LWW1rLzZldlRqSG84RTFGZlV3My9tdm83TEg4K0d2QkVNa3lyaGVvdENNVElyRGMvMlBKcFo2RGVBWk55Sng4UnUiLCJtYWMiOiI1MDk1NWY3OWIyYWFhMmQ4NDYxOTgzNzYxYmQzODIzMTU1YTk2ZWM1ZjM0ZjE3MzhmNTBhYTVkZTJmZjFhN2Y3IiwidGFnIjoiIn0%3D; expires=Wed, 30 Apr 2025 17:00:10 GMT; Max-Age=2629740; path=/; samesite=laxXSRF-TOKEN=eyJpdiI6IjZFVE8vbnY4R09TaUdrdUpaWUpieVE9PSIsInZhbHVlIjoiNTRLVEhFdUtGckpMMzBiYnJXY1dlb2lGL1BYQmxldGZVdHlrdkdYa2JvbDQ0WHQ2bTdpL0dtVkpOLzlMei9LWW1rLzZld" 1 => "thestandardmediagroup_session=eyJpdiI6InJEdFdDeU5iam1sSzJPa2l3MmxLS0E9PSIsInZhbHVlIjoiZml5ZDFRTzR5TS9KdmJWOXJuNmN4UGdYZGZRRXE0VmtqeXZGV3lLbU1BczRUekJ4Z0ZFbVVHUjBVNm5CV3ZDQ01tNHJEdVIzeXFqTkl6cUxSaXpFVVFndzBVRlpneFplcnhDOUUwOC9tSEJaQ0kwWTB1cmVJNWJ1SmRnTDdxSmoiLCJtYWMiOiJmMTNkYzhhMmI1ZTI3ZjU3NTI4Y2FmZDI2NmJiZGViMDBjZDYxNzRlZTkyNjlhYTAyMzA4Yjk3N2EyZTc4M2RkIiwidGFnIjoiIn0%3D; expires=Wed, 30 Apr 2025 17:00:10 GMT; Max-Age=2629740; path=/; httponly; samesite=laxthestandardmediagroup_session=eyJpdiI6InJEdFdDeU5iam1sSzJPa2l3MmxLS0E9PSIsInZhbHVlIjoiZml5ZDFRTzR5TS9KdmJWOXJuNmN4UGdYZGZRRXE0VmtqeXZGV3lLbU1BczRUekJ4Z0ZFbVVHUj" ] "Set-Cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6IjZFVE8vbnY4R09TaUdrdUpaWUpieVE9PSIsInZhbHVlIjoiNTRLVEhFdUtGckpMMzBiYnJXY1dlb2lGL1BYQmxldGZVdHlrdkdYa2JvbDQ0WHQ2bTdpL0dtVkpOLzlMei9LWW1rLzZldlRqSG84RTFGZlV3My9tdm83TEg4K0d2QkVNa3lyaGVvdENNVElyRGMvMlBKcFo2RGVBWk55Sng4UnUiLCJtYWMiOiI1MDk1NWY3OWIyYWFhMmQ4NDYxOTgzNzYxYmQzODIzMTU1YTk2ZWM1ZjM0ZjE3MzhmNTBhYTVkZTJmZjFhN2Y3IiwidGFnIjoiIn0%3D; expires=Wed, 30-Apr-2025 17:00:10 GMT; path=/XSRF-TOKEN=eyJpdiI6IjZFVE8vbnY4R09TaUdrdUpaWUpieVE9PSIsInZhbHVlIjoiNTRLVEhFdUtGckpMMzBiYnJXY1dlb2lGL1BYQmxldGZVdHlrdkdYa2JvbDQ0WHQ2bTdpL0dtVkpOLzlMei9LWW1rLzZld" 1 => "thestandardmediagroup_session=eyJpdiI6InJEdFdDeU5iam1sSzJPa2l3MmxLS0E9PSIsInZhbHVlIjoiZml5ZDFRTzR5TS9KdmJWOXJuNmN4UGdYZGZRRXE0VmtqeXZGV3lLbU1BczRUekJ4Z0ZFbVVHUjBVNm5CV3ZDQ01tNHJEdVIzeXFqTkl6cUxSaXpFVVFndzBVRlpneFplcnhDOUUwOC9tSEJaQ0kwWTB1cmVJNWJ1SmRnTDdxSmoiLCJtYWMiOiJmMTNkYzhhMmI1ZTI3ZjU3NTI4Y2FmZDI2NmJiZGViMDBjZDYxNzRlZTkyNjlhYTAyMzA4Yjk3N2EyZTc4M2RkIiwidGFnIjoiIn0%3D; expires=Wed, 30-Apr-2025 17:00:10 GMT; path=/; httponlythestandardmediagroup_session=eyJpdiI6InJEdFdDeU5iam1sSzJPa2l3MmxLS0E9PSIsInZhbHVlIjoiZml5ZDFRTzR5TS9KdmJWOXJuNmN4UGdYZGZRRXE0VmtqeXZGV3lLbU1BczRUekJ4Z0ZFbVVHUj" ] ]
        session_attributes
        0 of 0
        array:4 [ "_token" => "hF4Eg9mt2RGObHp1sDCev9rbcte1kT7E8RaELMgt" "offset" => 0 "_previous" => array:1 [ "url" => "http://www.standardmedia.co.ke/main-staging/wellness/article/2001514912/replace-bad-habits-with-positive-ones" ] "_flash" => array:2 [ "old" => [] "new" => [] ] ]
        ClearShow all
        Date ↕MethodURLData
        #12025-03-31 09:31:10GET/main-staging/wellness/article/2001514912/replace-bad-habits-with-positive-ones21138442