ActivityShareUser.php
395 Bytes
<?php
namespace App\Models;
use App\Support\Model;
use Awobaz\Compoships\Compoships;
use Awobaz\Compoships\Database\Eloquent\Relations\HasOne;
class ActivityShareUser extends Model
{
use Compoships;
protected $table = 'activity_share_users';
protected $guarded = [];
public function user(): HasOne
{
return $this->hasOne(User::class, 'id', 'share_id');
}
}