Skip to content

Commit

Permalink
remove rules() from addresscontroller
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Jan 3, 2025
1 parent 93b0ee7 commit 9d862ed
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/Http/Controllers/Actions/AddressController.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,24 +89,4 @@ public function store(Requests\CreateOrUpdateAddressRequest $request, $id)
return $this->withErrors($request, $error->getMessage());
}
}

private function rules()
{
return [
'first_name' => ['required', 'string'],
'last_name' => ['required', 'string'],
'company' => ['nullable', 'string'],
'address1' => ['required', 'string'],
'address2' => ['nullable', 'string'],
'city' => ['required', 'string'],
'province' => ['required', 'string'],
'zip' => ['required', 'string'],
'phone' => ['nullable', 'string'],
'name' => ['nullable', 'string'],
'province_code' => ['nullable', 'string'],
'country' => ['required', 'string'],
'country_code' => ['required_without:country', 'string', 'size:2'],
'default' => ['nullable', 'boolean'],
];
}
}

0 comments on commit 9d862ed

Please sign in to comment.