How To Do a Get Request on Laravel
Use the HTTP Helper in Laravel to Perform GET requests. This example also includes a Bearer Token Request.
In order to do a GET request on Laravel you can use the HTTP Request Helper.
Include this in your header to use the helper.
use IlluminateHttpRequest;
Then you can request your get URL here we also have a bearer token we are passing
$response = Http::withToken('Bearer TOken')->get('https://localhost:8888/api/campaign?start_date='.$start_date.'T00:00:00.291Z&end_date='.$end_date.'T23:59:59.291Z ');