Skip to content

PHP code snippet – How to pass token with post request laravel?

use Illuminate\Http\Request;
public function index(Request $request)
{
       $bearerToken = $request->header('Authorization'); // will return "Bearer access_token" string
}
See also  CSS code snippet - How to use the display property?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.