---
title: "Discussion on \"How to upload real files in Laravel Tests\" | Hashnode"
description: "Discussion on \"How to upload real files in Laravel Tests\". This is a brief guide on how to upload real files - not fakes - when testing with PHPUnit in Laravel."
url: "https://hashnode.com/posts/how-to-upload-real-files-in-laravel-tests/6415c85f7dfde261050ab2ce"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to upload real files in Laravel Tests](https://blog.elikem.dev/how-to-upload-real-files-in-laravel-tests?utm_source=hashnode&utm_medium=feed)

This is a brief guide on how to upload real files - not fakes - when testing with PHPUnit in Laravel.

Mar 18, 2023 · 8 min read · blog.elikem.dev  
Updated Aug 26, 2023  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#phpunit](https://hashnode.com/tag/phpunit)
-   [#php](https://hashnode.com/tag/php)
-   [#testing](https://hashnode.com/tag/testing)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)

## Written by

[Elikem](https://hashnode.com/@eskay_amadeus)

@eskay\_amadeus

  
[View profile](https://hashnode.com/@eskay_amadeus)

I love to solve problems :)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
