This commit is contained in:
James Cole 2020-01-24 04:59:08 +01:00
parent 69b30f4220
commit 16a6ee577d
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -56,25 +56,6 @@ class Request extends FormRequest
return null; return null;
} }
/**
* Return a boolean value.
*
* @param string $field
*
* @return bool
*/
public function boolean(string $field): bool
{
if ('true' === (string)$this->input($field)) {
return true;
}
if ('false' === (string)$this->input($field)) {
return false;
}
return 1 === (int)$this->input($field);
}
/** /**
* @param string $value * @param string $value
* *