✏️ Edit: Productcomment.php
Path:
/home/thiqat5/dex.thiqatech.com/model/Productcomment.php
Size: 459 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 Productcomment extends Model { // protected $appends = ['UserInfo']; public function getUserInfoAttribute() { $Productcomments = Productcomment:: where('shop_id', $this->id)-> get(); if ($Userinfo = Customer:: where('id', $this->Customer_id)->first()) return $Userinfo; else return 0 ; } }
💾 Save
Cancel
Save as UTF-8, newlines normalized to LF