UserActivityCollectionPivot.php
769 Bytes
<?php
namespace App\Models\Pivots;
use App\Models\Activity;
use App\Models\User;
use App\Traits\DateTimeTrait;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\Pivot;
use Illuminate\Database\Eloquent\SoftDeletes;
class UserActivityCollectionPivot extends Pivot
{
use SoftDeletes, DateTimeTrait;
protected $table = 'user_activity_collections';
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function activity(): BelongsTo
{
return $this->belongsTo(Activity::class);
}
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}