What happens if you add this line to EloquentSettingRepository..
use Modules\Core\Repositories\Eloquent\EloquentCoreRepository;
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hey, guys! I need help with a bug. I'm getting this fatal error in my app:
Whoops, looks like something went wrong.
FatalErrorException in EloquentSettingRepository.php line 6:
Class 'Modules\Core\Repositories\Eloquent\EloquentCoreRepository' not found
in EloquentSettingRepository.php line 6
The EloquentCoreRepository class exists in that namespace.
The class EloquentSettingRepository is:
namespace Modules\Core\Repositories\Eloquent;
use Modules\Core\Repositories\SettingRepository;
// this is the line 6
class EloquentSettingRepository extends EloquentCoreRepository implements SettingRepository {
...
}
And the EloquentCoreRepository class is:
namespace Modules\Core\Repositories\Eloquent;
use Modules\Core\Repositories\CoreRepository;
abstract class EloquentCoreRepository implements CoreRepository
{
...
}
I did composer dump-autoload, php artisan clear-compiled, cache:clear, optimize... but the error persists
Any ideas? I have none. I have already spent more than 1 hour trying to solve this but it seams I can't get to it.
Check the class file names for any error. Case mismatch, spelling error if any ...
Please or to participate in this conversation.