skip to Main Content

Laravel – How can I retry a pool HTTP request based on certain status codes?

I'm making a set of HTTP requests using Laravel's Http::pool like so: $responses = Http::pool(fn(Pool $pool) => $requests->map(fn($r) => $pool->as($r->id)->myMacro()->post('myUrl', [ ... ]) )); myMacro() is defined in AppServiceProvider like so: PendingRequest::macro('myMacro', function () { return PendingRequest::withHeaders([ 'Content-Type' => 'application/json',…

VIEW QUESTION

Laravel – Please help me with my code, What should I do for me to paste the photo using asset in <img src=" ? ">

@foreach ($profiles as $profile) <tr> <td>{{ $profile->id }}</td> <td>{{ $profile->email }}</td> <td>{{ $profile->name }}</td> <td>{{ $profile->age }}</td> <td>{{ $profile->gender }}</td> <td>{{ $profile->position }}</td> <td>{{ $profile->department }}</td> <td>{{ $profile->phone_number }}</td> <td> @if ($profile->images) ** <img src="{{ asset('storage/app/public/'.$profile->images) }}" alt="Profile Image" style="max-width:…

VIEW QUESTION
Back To Top
Search