1
0
forked from metin2/web

WIP: started implementing shop, multi-language

This commit is contained in:
2024-03-30 15:47:48 +02:00
parent 8a88940d4f
commit 181c7ce27c
244 changed files with 6167 additions and 827 deletions

View File

@ -0,0 +1,17 @@
<?php
namespace App\Models\Enums;
enum ShopItemPricingEnum: string
{
case CASH = 'CASH';
case MILEAGE = 'MILEAGE';
public function description(): string
{
return match($this) {
self::CASH => __('shop/main.currency.cash'),
self::MILEAGE => __('shop/main.currency.mileage')
};
}
}