👁 View: OrdersShop.php
Path: /home/thiqat5/dex.thiqatech.com/model/OrdersShop.php
Size: 362 B · Modified: 2021-11-03 20:28:12 · Perm: 0644 · Writable
<?php

namespace App\model;

use Illuminate\Database\Eloquent\Model;

class OrdersShop extends Model
{
    //
    protected $appends = ['ShopInfo'];


    public function getShopInfoAttribute()
    {
        // return null ;
        // return $this->shopId;
        $Shop =  Shop::where('id', $this->shopId )->first();
        return $Shop;
    
       
    }
}