Compare commits
No commits in common. "0e6c40b8f953c1c477151f9ec77da8dfe9b373ae" and "29e4660cf6eef13d8d1c6cc5101b558b494f02c1" have entirely different histories.
0e6c40b8f9
...
29e4660cf6
|
|
@ -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');
|
||||
}),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue