mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
task claim
This commit is contained in:
@@ -519,6 +519,11 @@ class User extends Authenticatable implements FilamentUser, HasName
|
||||
return $this->belongsToMany(Exam::class, "exam_users", "uid", "exam_id");
|
||||
}
|
||||
|
||||
public function onGoingExamAndTasks(): \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
||||
{
|
||||
return $this->examAndTasks()->wherePivot("status", ExamUser::STATUS_NORMAL);
|
||||
}
|
||||
|
||||
public function getAvatarAttribute($value)
|
||||
{
|
||||
if ($value) {
|
||||
|
||||
Reference in New Issue
Block a user