<?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;
}
}