update 20.10.2025
This commit is contained in:
parent
8c11130b5d
commit
a939cd51ef
616 changed files with 84821 additions and 4121 deletions
17
dev/app-bak/Services/TranslationHelper.php
Normal file
17
dev/app-bak/Services/TranslationHelper.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
namespace App\Services;
|
||||
|
||||
use App\Models\UserLevel;
|
||||
|
||||
class TranslationHelper
|
||||
{
|
||||
|
||||
|
||||
|
||||
public static function transUserLevelName($name){
|
||||
$UserLevel = UserLevel::whereName($name)->first();
|
||||
return $UserLevel ? $UserLevel->getLang('name') : $name;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue