Authentication->allowUnauthenticated([ 'androidProfile']); } public function androidProfile(){ $response = $this->response; $response = $response->withHeader('Content-Transfer-Encoding', 'base64'); $response = $response->withType('application/x-wifi-config'); $home_sp = << 1.2 PerProviderSubscription urn:wfa:mo:hotspot2dot0-perprovidersubscription:1.0 i001 HomeSP FriendlyName RADIUSdesk-HS2.0 07-Jul-25 FQDN mesh-manager.com Credential Realm mesh-manager.com UsernamePassword Username ppsk_demo@ppsk_demo Password dGVzdGluZzEyMw== EAPMethod EAPType 21 InnerMethod MS-CHAP-V2 EOD; $home_sp_64 = base64_encode($home_sp); $ca_64 = base64_encode($this->ca); $home_sp_ca = <<withStringBody(base64_encode($home_sp_ca)); return $response; } }