Your ROOT_URL in app.ini is http://167.99.32.63:3000/ but you are visiting http://167.99.32.63/ibrahim/BAGETWEBPANEL/blame/branch/master/app/Models/WithdrawRequest.php You should set ROOT_URL correctly, otherwise the web may not work correctly.

38 lines
843 B

2 years ago
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Scopes\ZoneScope;
class WithdrawRequest extends Model
{
use HasFactory;
protected $casts = [
'amount'=>'float',
'delivery_man_id'=>'integer',
'withdrawal_method_id'=>'integer',
'approved'=>'integer',
'admin_id'=>'integer',
'vendor_id'=>'integer',
];
public function vendor(){
return $this->belongsTo(Vendor::class);
}
public function method(){
return $this->belongsTo(WithdrawalMethod::class,'withdrawal_method_id');
}
public function deliveryman(){
return $this->belongsTo(DeliveryMan::class);
}
protected static function booted()
{
static::addGlobalScope(new ZoneScope);
}
}