what provides agent ?
Strange session outputs
Fresh install of Laravel 10 with Jetstream/Livewire (today, nothing else changed/added).
When I echo $session->agent->platform() once, it comes out as expected ("OSX").
When I do it a second time in the same blade template, the second time comes out as "1"
This also causes an issue in a @if, e.g.
@if($session->agent->platform()) {{$session->agent->platform() @endif, outputs 1. If I pull it outside of the if it outputs "OSX" again. If I put it before, in and after the if, I get "OSX", "1", "1".
I had this issue on an existing project when I upgraded so I thought it was something I had done. But unfortunately, I'm having the same problem with a fresh install.
It's like the variable is somehow corrupted after the first output.
Please or to participate in this conversation.