Level 61
Have you tried using Symfony\Component\Process\Process class?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
How can I programmatically reboot the server that is hosting my Laravel project?
I have tried using the below commands on my controller, but it didn't work, nothing happened.
exec('reboot');
system('reboot');
Please or to participate in this conversation.