I am working on an old project which is built on Laravel 5.2
The application was attacked and site was down. I removed the infected code, But now I am getting the following error:
PHP Warning: require(): Filename cannot be empty in public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 60
The following code is in the file where the error is:
protected function loadConfigurationFiles(Application $app, RepositoryContract $repository)
{
foreach ($this->getConfigurationFiles($app) as $key => $path) {
$repository->set($key, require $path);
}
}
How can I solve this?