mirror of
https://github.com/10h30/Test-Laravel-File-Upload.git
synced 2026-06-05 15:07:47 +09:00
Upload file to public disk
This commit is contained in:
@@ -56,3 +56,11 @@ In `app/Http/Controllers/HouseController.php` file, in the `download()` method,
|
||||
Test method `test_download_uploaded_file()`.
|
||||
|
||||
---
|
||||
|
||||
## Task 5. Upload File to Public
|
||||
|
||||
In `app/Http/Controllers/OfficeController.php` file, in the `store()` method, upload the file to the "public" disk, to its "offices" folder. The test asserts that the file exists in the respected location, and is shown in the offices/show.blade.php
|
||||
|
||||
Test method `test_public_file_show()`.
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user