title: cPanel Forwarders - Piping Emails to a Laravel Application
body: <p>I'm trying to forward an email to my Laravel Application siting on a subdomain in cPanel.</p>
  <p>That's why I've created an artisan command which is, for now, having just an info log: <code>\Log::info(&quot;Email sent!&quot;)</code>, that is writing this message whenever that command is executed.</p>
  <p>In cPanels Forwarders I've added a new forwarder with a <strong>Pipe to a Program</strong> option, and the code included in that input field is: <code>/usr/local/bin/php -q /home/subdomain_folder/artisan mail-parse</code>.</p>
  <p>This doesn't do anything when email is recieved, nothing is written in <strong>storage/logs/laravel.log</strong> file.</p>
  <p>But, if I paste this same command <code>/usr/local/bin/php -q /home/subdomain_folder/artisan mail-parse</code> in a Terminal with SSH, laravel.log updates as expected.</p>