With Laravel 5.4 Artisan will not run and uses a lot of memory, it worked a long while before with the same versions (besides PHP 7.0.14 to 7.0.15 maybe?).
$ ./artistan command does nothing. While watching
htop I notice the memory climb from
4gb very quickly. Once I cancel it, it jumps back down.
<strong>What Im Using</strong><ul><li>Ubuntu Linux Xenial x64 (Local Development)</li> <li>Apache2.4</li> <li>MySQL 5.7</li> <li>PHP 7.0.15 <ul><li>Laravel 5.4</li> <li>Composer 1.3.2</li> </ul></li> </ul>
<strong>PHP Extensions Loaded</strong>
[PHP Modules] bz2 Core ctype curl date dom exif fileinfo filter gd gettext hash iconv igbinary imap intl json libxml mbstring mcrypt mysqli mysqlnd odbc openssl pcntl pcre PDO pdo_mysql PDO_ODBC Phar posix readline redis Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache
<strong>Things I've Tried:</strong><ul><li>Removed the bootstrap/cache/config.php file. <ul><li>
composer dumpautoload</li> <li>
composer self-update</li> </ul></li> <li>The Artisan commands don't work below <ul><li>
php artisan clear-compiled</li> <li>
php artisan optimize</li> <li>
php artisan optimize --force</li> </ul></li> </ul>
<strong>My Guess</strong> I'm guessing I have a PHP extension enabled causing the problem but I wouldn't know which -- Please let me know if you have any ideas or clues.
It's missing ::class I had the same problem, just like you, one little mistake.Answer2:
Did a new installation, and this is causing it:
$providers => [ ... Laravel\Cashier\CashierServiceProvider ... ]
from <a href="https://laravel.com/docs/5.4/billing" rel="nofollow">https://laravel.com/docs/5.4/billing</a>
I'm not sure why this is causing it. I have followed the instructions with no implementation (I cannot migrate without artisan running either. This is odd but fixes it for now.