|
@@ -1,35 +1,9 @@
|
|
|
<?php
|
|
<?php
|
|
|
|
|
|
|
|
-
|
|
|
|
|
namespace App\Models;
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
-use App\Constants\HttpStatus;
|
|
|
|
|
-use App\Constants\Util;
|
|
|
|
|
-use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
|
|
|
-
|
|
|
|
|
-use Illuminate\Notifications\Notifiable;
|
|
|
|
|
-use Laravel\Sanctum\HasApiTokens;
|
|
|
|
|
-use Illuminate\Database\Eloquent\Builder;
|
|
|
|
|
-
|
|
|
|
|
-/**
|
|
|
|
|
- * @mixin Builder
|
|
|
|
|
- * @method static Builder|static where($column, $operator = null, $value = null, $boolean = 'and')
|
|
|
|
|
- */
|
|
|
|
|
-class Coin extends Authenticatable
|
|
|
|
|
|
|
+class Coin extends BaseModel
|
|
|
{
|
|
{
|
|
|
- use HasApiTokens, Notifiable;
|
|
|
|
|
-
|
|
|
|
|
protected $table = 'coins';
|
|
protected $table = 'coins';
|
|
|
- protected $hidden = ['created_at', 'updated_at'];
|
|
|
|
|
- protected $fillable = ['coin', 'net', 'address','min_exchange_amount'];
|
|
|
|
|
-
|
|
|
|
|
- protected function getCreatedAtAttribute($value)
|
|
|
|
|
- {
|
|
|
|
|
- return \Carbon\Carbon::parse($value)->setTimezone('Asia/Shanghai')->format('Y-m-d H:i:s');
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- protected function getUpdatedAtAttribute($value)
|
|
|
|
|
- {
|
|
|
|
|
- return \Carbon\Carbon::parse($value)->setTimezone('Asia/Shanghai')->format('Y-m-d H:i:s');
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ protected $fillable = ['coin', 'net', 'address', 'min_exchange_amount'];
|
|
|
}
|
|
}
|