File: //home/u435929562/domains/dev.peacockindia.in/public_html/app/Models/Backend/review.php
<?php
namespace App\Models\Backend;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Customer;
class review extends Model
{
use HasFactory;
public function product_name(){
return $this->belongsTo(product::class,'product_id')->withDefault();
}
public function customer_name(){
return $this->belongsTo(Customer::class,'customer_id')->withDefault();
}
}