@crazylife If you’re faking the disk then Laravel will replace the configured disk with the fake one: https://laravel.com/docs/8.x/mocking#storage-fake
Mar 4, 2021
3
Level 4
How to delete s3 image in feature test?
In my feature test was using Storage::fake('s3'), but when calling my api to delete the image then it will throw error as my API using Storage::disk('s3')->delete($path).
Any idea how i can achieve this?
Please or to participate in this conversation.