<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class CustomerOptInHistory extends Model
{
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = "customer_opt_in_history";
// * RELATIONS
* Customer BelongsTo relation
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
public function customer()
return $this->belongsTo(Customer::class);
}
* Brand BelongsTo relation
public function brand()
return $this->belongsTo(Brand::class);