title: PHP artisan "PHP Fatal error" on allowed memory size in Laravel
body: <p>It's confusing, why this error shown. I'm using <code>Laravel 5.4</code>, after using <code>composer update</code> then this error shown.</p>
  
  <pre><code>$ composer update
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Nothing to install or update
  Generating autoload files
  &gt; Illuminate\Foundation\ComposerScripts::postUpdate
  &gt; php artisan optimize
  PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 495616 bytes) in E:\xampp\htdocs\botble\vendor\symfony\debug\ExceptionHandler.php on line 238
  PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in E:\xampp\htdocs\botble\vendor\symfony\debug\Exception\FlattenException.php on line 203
  Script php artisan optimize handling the post-update-cmd event returned with error code 255
  </code></pre>
  
  <p>As some of answer on stack and other community, i'm also test this after update <code>php.ini</code> with <code>memory_limit 2048M</code>. But still same error shown.</p>
  
  <p>Any suggestion for this issue.</p>