You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
504 B
22 lines
504 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class OptionPair extends Model
|
|
{
|
|
//期权交易对
|
|
|
|
protected $table = 'option_pair';
|
|
protected $primaryKey = 'pair_id';
|
|
protected $guarded = [];
|
|
|
|
// public $appends = ['coin_icon'];
|
|
// public function getCoinIconAttribute()
|
|
// {
|
|
// $coin_icon = Coins::query()->where('coin_name',$this->base_coin_name)->value('coin_icon');
|
|
// return getFullPath($coin_icon);
|
|
// }
|
|
|
|
}
|
|
|