JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "Order.php"

Full Path: /var/www/laravel_filter/app/Models/Order.php
File size: 756 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Modules\Service\Entities\Service;

class Order extends Model
{
    use HasFactory;

    public function influencer(){
        return $this->belongsTo(User::class,'influencer_id')->select('id','name','email','image','phone','address','designation','is_influencer','username');
    }

    public function service(){
        return $this->belongsTo(Service::class,'service_id');
    }

    public function client(){
        return $this->belongsTo(User::class,'client_id')->select('id','name','email','image','phone','address');
    }

    public function city(){
        return $this->belongsTo(City::class,'city_id');
    }


}