Support the ongoing development of Laravel.io →
Testing Input Requests
Last updated 1 year ago.

websterl3o liked this thread

1

My solution was to use method call as follows:

$response = $this->call(
    'GET', 
    'api/user/logout', 
    [], 
    [
        'key' => Illuminate\Support\Facades\Crypt::encryptString('abc123'), 
        'uid' => Illuminate\Support\Facades\Crypt::encryptString($user->id)
    ]
);

It served my case and I didn't have to remove the cookie middleware.

Last updated 4 years ago.

websterl3o liked this reply

1

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.