title: How to execute external shell commands from laravel controller?
body: <p>I need to execute shell commands from controller , but not only for files inside the project , ex. system(<strong>'rm /var/www/html/test.html'</strong>) or system(<strong>'sudo unzip /var/www/html/test.zip'</strong>);</p>
  
  <p>I call the function but nothing happen , any idea how to execute external shell commands from controller like removing one file in another directory?</p>
  
  <pre><code>system('rm /var/www/html/test.html');
  //or
  exec('rm /var/www/html/test.html')
  </code></pre>