You can't. Cookie::get() dispatches to Request::cookie, and per the docs Request isn't to be mocked...
I can't answer specifically for workbench. But in a pure composer way, the current recommended way...
You don't have to create your own "LAST_ACTIVITY" key: you can use the Symfony meta-data a...
The Laravel portal for problem solving, knowledge sharing and community building.
The community