feat: 项目基础框架+配置+Kernel
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class AiCurrency extends Model
|
||||
{
|
||||
protected $table = 'ai_currency';
|
||||
public $timestamps = false;
|
||||
|
||||
|
||||
|
||||
public function getCurrencyNameAttribute()
|
||||
{
|
||||
return $this->hasOne('App\Currency', 'id', 'currency_id')->value('name');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user