src/Http/Controllers/TransientTokenController.php
public function refresh(Request $request)
    {
        return (new Response('Refreshed.'))->withCookie($this->cookieFactory->make(
            $request->user()->getKey(), $request->session()->token()
        ));
    }
public function refresh(Request $request)
    {
        return (new Response('Refreshed.'))->withCookie($this->cookieFactory->make(
            $request->user()->getKey(), $request->session()->token()
        ));
    }
public function refresh ( Request $ request ) { return ( new Response ( 'Refreshed.' ) ) -> withCookie ( $ this -> cookieFactory -> make ( $ request -> user ( ) -> getKey ( ) , $ request -> session ( ) -> token ( ) ) ) ; }
Get a fresh transient token cookie for the authenticated user.

@param  \Illuminate\Http\Request  $request
@return \Illuminate\Http\Response
Get a fresh transient token cookie for the authenticated user .