08 2024
This commit is contained in:
parent
04d677d37a
commit
bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions
17
app/Services/TranslationHelper.php
Normal file
17
app/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