<?php
namespace Project\Installer\Helpers;
class ConfigHelper {
public function get()
{
$config_file_path = $this->getConfigFilePath();
$config_array = include $config_file_path;
return $config_array;
}
public function getConfigFilePath() {
return resource_path('installer/src/config/installer.php');
}
}
In case of an error, the API will return an error response containing a specific error code 400, 403 Failed and a user-friendly message. Refer to our API documentation for a comprehensive list of error codes and their descriptions.