I am using https://laravel.com/docs/5.4/envoy as a deployment tool. In the Envoy.blade.php, I have command that requires sudo access for example:-
chmod 777 -R storage/
chmod 777 -R bootstrap/cache
These commands fails with an error saying operation not permitted. How can we resolve this?