Skip to content
  • This project
    • Loading...
  • Sign in

PaoPao / serviceWork

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • serviceWork
  • app
  • Models
  • ActivityShareUser.php
  • 杨俊's avatar
    feat(master): 初始化 · a4671c53
    a4671c53
    杨俊 authored 2024-05-27 10:32:33 +0800
ActivityShareUser.php 395 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?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');
    }
}