Current File : /home/tradevaly/ladybagcollection.com/project/app/Models/ProductClick.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ProductClick extends Model
{
	protected $table = 'product_clicks';
	protected $fillable = ['product_id'];
	public $timestamps = false;
    public function product()
    {
        return $this->belongsTo('App\Models\Product')->withDefault(function ($data) {
            foreach($data->getFillable() as $dt){
                $data[$dt] = __('Deleted');
            }
        });
    }
}