Skip to content

Commit

Permalink
updated docs to reflect the updates to the patch method
Browse files Browse the repository at this point in the history
  • Loading branch information
MelonSmasher committed Jun 8, 2017
1 parent 5c5da4b commit d1394ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/API/V1/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ public function patch(Request $request)
// If the load status code 'none' or 'null' or 'nil'?
if (in_array(strtolower($data['load_status_code']), $nulls, true)) {
// Set the id to 0
$data['primary_duty_id'] = 0;
$data['load_status_id'] = 0;
// Unset the code
unset($data['primary_duty_code']);
unset($data['load_status_code']);
} else { // If the load status is not 'null' or 'none', or 'nil'
// Create a validator
$validator = Validator::make($data, ['load_status_code' => 'string|exists:load_statuses,code,deleted_at,NULL']);
Expand Down

0 comments on commit d1394ab

Please sign in to comment.