Level 1
i think this package is gonna help you https://github.com/Pharaonic/laravel-has-files
I'm trying to upload multiple files, is there any efficient way other then below. Because, when I do this, I got problem when the network is so slow. Because all the image not executed successfully.
$thumbnails = request()->file('thumbnail');
foreach ($thumbnails as $thumbnail) {
$thumbnail_name = $thumbnail->store('posts');
$post->postImages()->create([
'path' => $thumbnail_name,
]);
}
Thanks in advanced.
Please or to participate in this conversation.