Level 2
I found the solution from this link, it's very useful.
https://quickadminpanel.com/blog/file-upload-in-laravel-the-ultimate-guide/
Hi,
I write this code when my laravel version is 5.6 and its work fine and upload files into public/ directory, since I upgrade my laravel to 5.7 this code worked fine but it was uploaded the files into storage/app/ directory, and not in public/
// upload method 1
request()->file("$key")->storeAs('/', $fileName);
// upload method 2
Storage::put('/', request()->file("$key"), 'public');
I search a lot but not found any same problem with my problem.
What should I do?
I found the solution from this link, it's very useful.
https://quickadminpanel.com/blog/file-upload-in-laravel-the-ultimate-guide/
Please or to participate in this conversation.