|
|
@@ -2,14 +2,13 @@
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
-use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
|
|
class Backflow extends BaseModel
|
|
|
{
|
|
|
protected $table = 'backflow';
|
|
|
protected $fillable = ['date', 'member_id', 'recharge_amount', 'withdrawal_amount', 'backflow_ratio', 'amount', 'status'];
|
|
|
|
|
|
- function member(): BelongsTo
|
|
|
+ function user()
|
|
|
{
|
|
|
return $this->belongsTo(User::class, 'member_id', 'member_id')
|
|
|
->select(['id', 'member_id', 'username', 'first_name']);
|