ok
Direktori : /home2/selectio/www/3-idiots/app/Model/ |
Current File : //home2/selectio/www/3-idiots/app/Model/WithdrawRequest.php |
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class WithdrawRequest extends Model { protected $casts = [ 'amount' => 'float', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; public function seller(){ return $this->belongsTo(Seller::class,'seller_id'); } public function delivery_men(){ return $this->belongsTo(DeliveryMan::class,'delivery_man_id'); } public function withdraw_method() { return $this->belongsTo(WithdrawalMethod::class,'withdrawal_method_id'); } }