Fix this error
Fix common errors
Paste the error message you got. Each page explains why it happens and the exact steps to fix it, for Laravel, PHP, MySQL, Composer, npm and more.
2 errors tagged #php · Show all
PHP: Class not found
Error: Class "App\Services\PaymentService" not found
Composer's autoloader cannot find a file for that class. Usually: The namespace does not match the folder (App\Services must be in app/Services). The file or class name differs in...
php
composer
laravel
PHP: Allowed memory size exhausted
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)
The script used more memory than PHP's memory_limit (134217728 bytes = 128 MB). Most often it loads too much at once, like Model::all() on a big table, or builds a huge array or fi...
php
laravel
performance