| 12345678910111213141516171819 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- class Withdraw extends BaseModel
- {
- protected $table = 'withdraws';
- protected $fillable = ['member_id', 'amount', 'service_charge', 'to_account', 'after_balance', 'address', 'status', 'remark'];
- protected $hidden = ['created_at'];
- public function member(): BelongsTo
- {
- return $this->belongsTo(User::class, 'member_id', 'member_id')
- ->select(['id', 'member_id', 'username', 'first_name']);
- }
- }
|