mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-08-01 08:16:55 -04:00
25 lines
462 B
PHP
25 lines
462 B
PHP
<?php
|
|
|
|
namespace Modules\MultiVendor\Entities;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class FollowSeller extends Model
|
|
{
|
|
protected $table = 'follow_seller';
|
|
protected $fillable = ['customer_id','seller_id'];
|
|
|
|
public function seller()
|
|
{
|
|
return $this->belongsTo(User::class,'seller_id','id');
|
|
}
|
|
public function customer()
|
|
{
|
|
return $this->belongsTo(User::class,'customer_id','id');
|
|
}
|
|
}
|
|
|