title: Laravel exec() produce a mysql-dump empty file
body: <p>I'm using exec() for execute mysql-dump but it's generating an empty file on apache, but when i use the "php artisan serve" the file is generated correctly, the output file has the same user and group in apache and in the artisan serve.</p>
  
  <p>Using: Ubuntu 14.04 and Xamp 5.6.12</p>
  
  <pre><code>$dir = substr(__DIR__, 0, 24).'database/backups/';
  
  $newBackup = Backup::create();
  
  $command = 'mysqldump -uroot lions &gt; '.$dir.$newBackup-&gt;getDateTimeString().'.sql';
  
  exec($command);
  </code></pre>