laravel access the request headers code example
Example 1: laravel get header from request
public function yourControllerFunction(\Illuminate\Http\Request $request)
{
$header = $request->header('Authorization');
// do some stuff
}
Example 2: laravel get all request parameters
$request->input('name');
$request->input('user.name'); // fetch from user object