fixed issue with laravel api change for fetching headers