Ken 1 viikko sitten
vanhempi
commit
773e45f23d
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      app/Models/ActivityReward.php
  2. 1 1
      app/Models/ActivityUser.php

+ 1 - 1
app/Models/ActivityReward.php

@@ -16,7 +16,7 @@ class ActivityReward extends BaseModel
 
     public function activityUser(): BelongsTo
     {
-        return $this->belongsTo(ActivityUser::class, 'activity_id', 'id');
+        return $this->belongsTo(activityUser::class, 'activity_id', 'id');
     }
 
     protected function getDetailImageAttribute($value)

+ 1 - 1
app/Models/ActivityUser.php

@@ -6,7 +6,7 @@ use App\Constants\Util;
 
 class ActivityUser extends BaseModel
 {
-    protected $table = 'activity_rewards';
+    protected $table = 'activity_user';
     protected $fillable = ['activity_id', 'member_id', 'title', 'sub_title', 'detail_image', 'start_time', 'end_time', 'part_in_time'];
 
     protected function getDetailImageAttribute($value)