Compare commits

..

No commits in common. "fa679187466a34a821fac7452e1423908a1e4980" and "b86efdc00b8c581cad269280f47d7cce868f1ac6" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class RiceShrimpWeeklyPriceUpdateRequest extends FormRequest
'week' => [
'filled',
'int',
Rule::exists(Keywords::class, 'key')->where(function ($query) {
Rule::exists(Keywords::class, 'id')->where(function ($query) {
return $query->where('type_key', 'weeks-per-year');
}),
],

View File

@ -17,7 +17,7 @@ class RiceShrimpWeeklyPrice extends Model
public function weekObj()
{
return $this->belongsTo(Keywords::class, 'week', 'key');
return $this->belongsTo(Keywords::class, 'week');
}
public function createdBy()