¨4.0.1¨
This commit is contained in:
@@ -9,11 +9,12 @@ class ConvertStringBooleans extends TransformsRequest
|
||||
/**
|
||||
* Transform the given value.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Closure $next
|
||||
* @param $key
|
||||
* @param $value
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
protected function transform($key, $value)
|
||||
protected function transform($key, $value): mixed
|
||||
{
|
||||
if ($value === 'true' || $value === 'TRUE') {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user