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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user