WIP on loan order

This commit is contained in:
2023-11-26 17:36:17 +05:00
parent 392136dc9b
commit 11ad96e5d8
13 changed files with 306 additions and 293 deletions

View File

@@ -23,7 +23,7 @@ class NovaRepo
{
$user = $event->request->user();
if (array_key_exists($user->locale, config('app.locales'))) {
if (array_key_exists($user?->locale, config('app.locales'))) {
app()->setLocale($user->locale);
}
}

View File

@@ -33,4 +33,12 @@ class EducationRepo
self::PHD => __('PHD'),
];
}
/**
* Default education status
*/
public static function default(): string
{
return self::HIGH_EDUCATION;
}
}

View File

@@ -27,4 +27,12 @@ class MarriageRepo
self::SINGLE => __('Single'),
];
}
/**
* Default marriage value
*/
public static function default(): string
{
return self::MARRIED;
}
}