src/ApiTokenCookieFactory.php
public function make($userId, $csrfToken)
    {
        $config = $this->config->get('session');

        $expiration = Carbon::now()->addMinutes($config['lifetime']);

        return new Cookie(
            Passport::cookie(),
            $this->createToken($userId, $csrfToken, $expiration),
            $expiration,
            $config['path'],
            $config['domain'],
            $config['secure'],
            true,
            false,
            $config['same_site'] ?? null
        );
    }
public function make($userId, $csrfToken)
    {
        $config = $this->config->get('session');

        $expiration = Carbon::now()->addMinutes($config['lifetime']);

        return new Cookie(
            Passport::cookie(),
            $this->createToken($userId, $csrfToken, $expiration),
            $expiration,
            $config['path'],
            $config['domain'],
            $config['secure'],
            true,
            false,
            $config['same_site'] ?? null
        );
    }
public function make ( $ userId , $ csrfToken ) { $ config = $ this -> config -> get ( 'session' ) ; $ expiration = Carbon :: now ( ) -> addMinutes ( $ config [ 'lifetime' ] ) ; return new Cookie ( Passport :: cookie ( ) , $ this -> createToken ( $ userId , $ csrfToken , $ expiration ) , $ expiration , $ config [ 'path' ] , $ config [ 'domain' ] , $ config [ 'secure' ] , true , false , $ config [ 'same_site' ] ?? null ) ; }
Create a new API token cookie.

@param  mixed  $userId
@param  string  $csrfToken
@return \Symfony\Component\HttpFoundation\Cookie
Create a new API token cookie .