Sindbad~EG File Manager

Current Path : /home/zada/www/app/Models/
Upload File :
Current File : /home/zada/www/app/Models/AffiliateUser.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Traits\PreventDemoModeChanges;

class AffiliateUser extends Model
{
  use PreventDemoModeChanges;

    //
    public function user(){
    	return $this->belongsTo(User::class);
    }

    public function affiliate_payments()
    {
      return $this->hasMany(AffiliatePayment::class)->orderBy('created_at', 'desc')->paginate(12);
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists (>^ω^<)看过哭02teddd(>^ω^<)看过哭02teddd