J
J
Jedi2018-05-01 09:48:48
Laravel
Jedi, 2018-05-01 09:48:48

Why doesn't Storage::delete() work?

Hello!
I ran into this problem...
Storage::delete('images/posts/' . $post->image); - Does not delete. I have tested variously, but to no avail.
What could be the problem ?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kairat Ubukulov, 2018-05-03
@ubukulov

Try like this.

<?php
Storage::delete(base_path() . "images/posts/" . $post->image);
?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question