add assignment completion api
This commit is contained in:
parent
916f070455
commit
350d2ec0b7
11 changed files with 281 additions and 16 deletions
|
|
@ -27,4 +27,11 @@ class RequestInput
|
|||
|
||||
return is_int($value) ? $value : null;
|
||||
}
|
||||
|
||||
public function boolean(string $key): ?bool
|
||||
{
|
||||
$value = $this->request->input($key);
|
||||
|
||||
return is_bool($value) ? $value : null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue