Add navigation sorting to SettingsCluster, enhance CurrencyRate model with table association and name attribute, and update Turkish translations for currency terms

This commit is contained in:
2025-11-13 22:12:35 +05:00
parent 54e11dcbb4
commit 038b5ea2fb
9 changed files with 228 additions and 2 deletions

View File

@@ -2,7 +2,8 @@
namespace App\Modules\CurrencyRate\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Casts\Attribute;
/**
* @property int $id
@@ -14,6 +15,20 @@ use Illuminate\Database\Eloquent\Model;
*/
class CurrencyRate extends Model
{
/**
* The table associated with the model.
*/
protected $table = 'currency_rates';
/**
* Get the user's first name.
*/
protected function name(): Attribute
{
return Attribute::make(
get: fn () => $this->currency_from . '-' . $this->currency_to,
);
}
/**
* Currencies
*