????

Your IP : 3.17.110.120


Current Path : /home/thenclexdoctor.com/public_html/app/Models/Api/
Upload File :
Current File : /home/thenclexdoctor.com/public_html/app/Models/Api/Payout.php

<?php

namespace App\Models\Api;

use App\Models\Payout as Model;

class Payout extends Model
{
    public function user()
    {
        return $this->belongsTo('App\Models\Api\User', 'user_id', 'id');
    }
    public function userSelectedBank()
    {
        return $this->belongsTo('App\Models\UserSelectedBank', 'user_selected_bank_id', 'id');
    }
    public function getDetailsAttribute(){
        return [

            'id'=>$this->id ,
            //  'user'=>$this->user->brief ,
            'amount'=>$this->amount ,
            'account_name'=>$this->user->role_name ,
            'account_number'=>$this->user->id ,
            'account_bank_name'=>$this->userSelectedBank->bank,
            'status'=>$this->status ,
            'created_at'=>$this->created_at


        ] ;
    }
}

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...