Код: Выделить всё
public function get()
{
$response = Http::withHeaders(['Content-Type' => 'application/pdf'])
->get('https://www.adobe.com/support/products/enterprise/knowledgecenter/media/c4611_sample_explain.pdf')
->body();
return $response;
}
Код: Выделить всё
Route::get('/file', [FileController::class, 'get']);
[img]https://i. sstatic.net/U7MFL.png[/img]
Если я возвращаю ответ()->файл($file), выдается ошибка:
Symfony \ Component\ HttpFoundation\ File \ Exception\ FileNotFoundException
Есть ли способ добиться этого без необходимости сначала сохранять файл?
Подробнее здесь: https://stackoverflow.com/questions/737 ... in-laravel
Мобильная версия