Skip to content

Commit

Permalink
🎨 change type to rules, specify detail, fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Aug 7, 2020
1 parent 5d4d828 commit e5a78fb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/MetApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ public function __construct(Request $request)
}

/**
* push an option to our query stack
* Push an option to our query stack
*
* @param string $name
* @param string|array $type
* @param string $name Name of the option
* @param string|array $rules String or array of Validation Rules, see https://laravel.com/docs/7.x/validation#available-validation-rules
* @return MetApi
*/
public function option($name, $type)
public function option($name, $rules)
{
$this->query['options'][$name] = $type;
$this->query['options'][$name] = $rules;
return $this;
}

Expand Down

0 comments on commit e5a78fb

Please sign in to comment.