UserVisitorRelation.php
426 Bytes
<?php
namespace App\Models;
use App\Support\Model;
use Awobaz\Compoships\Database\Eloquent\Relations\BelongsTo;
class UserVisitorRelation extends Model
{
protected $table = 'user_visitors';
protected $guarded = [];
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
public function visitor(): BelongsTo
{
return $this->belongsTo(User::class);
}
}