✏️ Edit: OrdersShop.php
Path:
/home/thiqat5/dex.thiqatech.com/model/OrdersShop.php
Size: 362 B · Modified: 2021-11-03 20:28:12 · Perm: 0644 · Writable
← Back to directory
👁 View
⬇ Download
<?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; } }
💾 Save
Cancel
Save as UTF-8, newlines normalized to LF