UserActivityViewPivot.php
420 Bytes
<?php
namespace App\Models\Pivots;
use App\Models\User;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\Pivot;
use Illuminate\Database\Eloquent\SoftDeletes;
class UserActivityViewPivot extends Pivot
{
use SoftDeletes;
protected $table = 'user_view_activitys';
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}