Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

z3ykola's avatar

How do disable clockwork with artisan tinker

The app is live in production and I can see clockwork working in browser dev-tools :)

  • How to disable it on the fly with tinker ?
  • Is this even a risk ?
0 likes
4 replies
Nakov's avatar
Nakov
Best Answer
Level 73

If you run php artisan vendor:publish then it will give you a clockwork config file in which you will find this line:

'enable' => env('CLOCKWORK_ENABLE', null),

this means that by default Clockwork is disabled.. but if on the production server you have CLOCKWORK_ENABLE=true then you need to either remove that or set it to false hope this helps.

2 likes
z3ykola's avatar

Great info thank you, But do u think it represent some risk to keep it running ?

1 like
Nakov's avatar

I would not run that on production for sure, as that is a tool for local development.

1 like

Please or to participate in this conversation.