@extends('layouts.app', ['title' => 'Laravel API Tester']) @section('content')

Laravel API Tester

أداة داخلية لإرسال الطلبات وحفظ السجل داخل Laravel.
@csrf
@if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@csrf
يسمح فقط بـ http و https، مع حظر localhost والشبكات الخاصة.
كل Header في سطر مستقل بصيغة Key: Value
في حالة Form اكتب كل سطر بهذا الشكل: key=value
@if(isset($result))

النتيجة

الحالة: {{ $result['status'] ?? '-' }} | المدة: {{ $result['duration_ms'] ?? '-' }} ms

Response Headers

{{ json_encode($result['headers'] ?? [], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) }}

Response Body

{{ $result['body'] ?? '' }}
@endif

السجل

آخر {{ isset($history) ? $history->count() : 0 }} عملية في هذه الصفحة
@forelse(($history ?? collect()) as $item) @empty @endforelse
الوقت Method URL Status المدة إعادة تعبئة
{{ $item->created_at }} {{ $item->method }} {{ $item->url }} {{ $item->response_status ?? 'ERROR' }} {{ $item->duration_ms ?? '-' }} ms
@csrf
لا يوجد سجل بعد.
@if(isset($history) && method_exists($history, 'links')) @endif
@endsection