|
|
@@ -2,14 +2,16 @@
|
|
|
|
|
|
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(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
|
+ public function member(): BelongsTo
|
|
|
{
|
|
|
return $this->belongsTo(User::class, 'member_id', 'member_id')
|
|
|
->select(['id', 'member_id', 'username', 'first_name']);
|