This commit is contained in:
11
api/app/Utils/RequestUtil.php
Normal file
11
api/app/Utils/RequestUtil.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Utils;
|
||||
|
||||
class RequestUtil
|
||||
{
|
||||
public static function isAcceptedBoolean($value)
|
||||
{
|
||||
return in_array($value, [true, false, 0, 1, '0', '1'], true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user