Casting query-string flags in PHP with
(bool) $request->input('active') evaluates the string 'false' as true, which causes sneaky filter bugs on GET endpoints. Calling $request->boolean('active') handles 'true', 'false', '1', '0', and 'on' properly in one call.commit 4609813