@extends('layouts.app') @section('title', 'API Token Details') @section('content')
curl -X GET "{{ url('/api/test') }}" \
-H "Authorization: Bearer {{ $apiToken->token }}" \
-H "Accept: application/json"
fetch('{{ url('/api/test') }}', {
headers: {
'Authorization': 'Bearer {{ $apiToken->token }}',
'Accept': 'application/json'
}
})
.then(response => response.json())
.then(data => console.log(data));