request_id === $request->id, 404); Gate::authorize('view', $request); if (!Storage::disk('local')->exists($attachment->path)) { abort(404, 'Файл не найден.'); } return response()->download( Storage::disk('local')->path($attachment->path), $attachment->filename ); } }