WIP on loan order
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,4 +33,12 @@ class EducationRepo
|
||||
self::PHD => __('PHD'),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Default education status
|
||||
*/
|
||||
public static function default(): string
|
||||
{
|
||||
return self::HIGH_EDUCATION;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,4 +27,12 @@ class MarriageRepo
|
||||
self::SINGLE => __('Single'),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Default marriage value
|
||||
*/
|
||||
public static function default(): string
|
||||
{
|
||||
return self::MARRIED;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user