Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

laravel middleware for apis

$response = $client->request('POST', '/api/user', [
    'headers' => [
        'Authorization' => 'Bearer '.$token,
        'Accept' => 'application/json',
    ],
]);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #middleware #apis
ADD COMMENT
Topic
Name
3+4 =