Answer the question
In order to leave comments, you need to log in
How to get correct file path in laravel 5.3?
The file is in
"/Applications/XAMPP/xamppfiles/htdocs/laravel5l.com/laravel5l/blog/storage/app/public/test.txt"
I'm trying to get the url to it like this:
public function index(Request $request)
{
dd(Storage::url('test.txt')); // выводит урл файла просто по имени без полного пути (на локал не работает)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question