mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
Update config references
This commit is contained in:
@@ -16,7 +16,7 @@ class FiscalYearsController extends Controller
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return response()->json([
|
||||
'fiscal_years' => config('crater.fiscal_years'),
|
||||
'fiscal_years' => config('invoiceshelf.fiscal_years'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ class LanguagesController extends Controller
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return response()->json([
|
||||
'languages' => config('crater.languages'),
|
||||
'languages' => config('invoiceshelf.languages'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ class RetrospectiveEditsController extends Controller
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return response()->json([
|
||||
'retrospective_edits' => config('crater.retrospective_edits'),
|
||||
'retrospective_edits' => config('invoiceshelf.retrospective_edits'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ class BootstrapController extends Controller
|
||||
'current_company' => new CompanyResource($current_company),
|
||||
'current_company_settings' => $current_company_settings,
|
||||
'current_company_currency' => $current_company_currency,
|
||||
'config' => config('crater'),
|
||||
'config' => config('invoiceshelf'),
|
||||
'global_settings' => $global_settings,
|
||||
'main_menu' => $main_menu,
|
||||
'setting_menu' => $setting_menu,
|
||||
|
||||
@@ -16,7 +16,7 @@ class ConfigController extends Controller
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
return response()->json([
|
||||
$request->key => config('crater.'.$request->key),
|
||||
$request->key => config('invoiceshelf.'.$request->key),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,20 +37,20 @@ class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
//main menu
|
||||
\Menu::make('main_menu', function ($menu) {
|
||||
foreach (config('crater.main_menu') as $data) {
|
||||
foreach (config('invoiceshelf.main_menu') as $data) {
|
||||
$this->generateMenu($menu, $data);
|
||||
}
|
||||
});
|
||||
|
||||
//setting menu
|
||||
\Menu::make('setting_menu', function ($menu) {
|
||||
foreach (config('crater.setting_menu') as $data) {
|
||||
foreach (config('invoiceshelf.setting_menu') as $data) {
|
||||
$this->generateMenu($menu, $data);
|
||||
}
|
||||
});
|
||||
|
||||
\Menu::make('customer_portal_menu', function ($menu) {
|
||||
foreach (config('crater.customer_menu') as $data) {
|
||||
foreach (config('invoiceshelf.customer_menu') as $data) {
|
||||
$this->generateMenu($menu, $data);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -183,7 +183,7 @@ class EnvironmentManager
|
||||
$checker = new RequirementsChecker();
|
||||
|
||||
$phpSupportInfo = $checker->checkPHPVersion(
|
||||
config('crater.min_php_version')
|
||||
config('invoiceshelf.min_php_version')
|
||||
);
|
||||
|
||||
if (! $phpSupportInfo['supported']) {
|
||||
@@ -202,14 +202,14 @@ class EnvironmentManager
|
||||
$conn = pg_connect("host={$request->database_hostname} port={$request->database_port} dbname={$request->database_name} user={$request->database_username} password={$request->database_password}");
|
||||
$dbSupportInfo = $checker->checkPgsqlVersion(
|
||||
$conn,
|
||||
config('crater.min_pgsql_version')
|
||||
config('invoiceshelf.min_pgsql_version')
|
||||
);
|
||||
|
||||
break;
|
||||
|
||||
case 'sqlite':
|
||||
$dbSupportInfo = $checker->checkSqliteVersion(
|
||||
config('crater.min_sqlite_version')
|
||||
config('invoiceshelf.min_sqlite_version')
|
||||
);
|
||||
|
||||
break;
|
||||
|
||||
@@ -129,7 +129,7 @@ class RequirementsChecker
|
||||
|
||||
$isMariaDb = Str::contains($version_info, 'MariaDB');
|
||||
|
||||
$minVersionMysql = $isMariaDb ? config('crater.min_mariadb_version') : config('crater.min_mysql_version');
|
||||
$minVersionMysql = $isMariaDb ? config('invoiceshelf.min_mariadb_version') : config('invoiceshelf.min_mysql_version');
|
||||
|
||||
$currentMysqlVersion = $this->getMysqlVersionInfo($conn);
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ trait SiteApi
|
||||
{
|
||||
protected static function getRemote($url, $data = [], $token = null)
|
||||
{
|
||||
$client = new Client(['verify' => false, 'base_uri' => config('crater.base_url').'/']);
|
||||
$client = new Client(['verify' => false, 'base_uri' => config('invoiceshelf.base_url').'/']);
|
||||
|
||||
$headers['headers'] = [
|
||||
'Accept' => 'application/json',
|
||||
|
||||
16
readme.md
16
readme.md
@@ -19,20 +19,20 @@ Web Application is made using Laravel & VueJS while the Mobile Apps are built us
|
||||
|
||||
## Documentation
|
||||
|
||||
- [Installation Steps](https://docs.craterapp.com/installation.html)
|
||||
- [User Guide](https://docs.craterapp.com/)
|
||||
- [Developer Guide](https://docs.craterapp.com/developer-guide.html)
|
||||
- [API Documentation](https://api-docs.craterapp.com)
|
||||
- [Installation Steps](https://docs.invoiceshelf.com/installation.html)
|
||||
- [User Guide](https://docs.invoiceshelf.com/)
|
||||
- [Developer Guide](https://docs.invoiceshelf.com/developer-guide.html)
|
||||
- [API Documentation](https://api-docs.invoiceshelf.com)
|
||||
|
||||
## Download
|
||||
|
||||
- [Download Link](https://craterapp.com/downloads)
|
||||
- [Download Link](https://invoiceshelf.com/downloads)
|
||||
|
||||
## Mobile Apps
|
||||
|
||||
- [Android](https://play.google.com/store/apps/details?id=com.craterapp.app)
|
||||
- [IOS](https://apps.apple.com/app/id1489169767)
|
||||
- [Source](https://github.com/bytefury/crater-mobile)
|
||||
- Andorid - Coming Soon
|
||||
- IOS - Coming Soon
|
||||
- [Source](https://github.com/InvoiceShelf/mobile)
|
||||
|
||||
## Discord
|
||||
|
||||
|
||||
Reference in New Issue
Block a user