namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Http;
class YourController extends Controller
{
public function showPage()
{
// Call your Laravel API
$response = Http::get(url('/api/your-endpoint'));
// Convert JSON response to array
$data = $response->json();
// Pass data to Blade view
return view('your-blade-file', ['apiData' => $data]);
}
}