Compare commits
No commits in common. "fa679187466a34a821fac7452e1423908a1e4980" and "b86efdc00b8c581cad269280f47d7cce868f1ac6" have entirely different histories.
fa67918746
...
b86efdc00b
|
|
@ -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