How can I get the useragent property with CakePHP built in tool?
useragent
Make use of the inbuilt CakePHP function env().
env()
env('HTTP_USER_AGENT');