[L6] Update even more areas of codebase using custom model validation logic
This commit is contained in:
parent
c586157dc4
commit
0d6cf54314
23 changed files with 41 additions and 33 deletions
|
@ -25,7 +25,7 @@ class StoreLocationRequest extends ApplicationApiRequest
|
|||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return collect(Location::getCreateRules())->only([
|
||||
return collect(Location::getRules())->only([
|
||||
'long',
|
||||
'short',
|
||||
])->toArray();
|
||||
|
|
|
@ -27,7 +27,7 @@ class UpdateLocationRequest extends StoreLocationRequest
|
|||
{
|
||||
$locationId = $this->route()->parameter('location')->id;
|
||||
|
||||
return collect(Location::getUpdateRulesForId($locationId))->only([
|
||||
return collect(Location::getRulesForUpdate($locationId))->only([
|
||||
'short',
|
||||
'long',
|
||||
])->toArray();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue