Attempting to send a file using DRAG & DROP with XMLHttpRequest
.
$images = $_FILES['images'];
When I use foreach:
foreach($images["name"] as $file => $name)
and
move_uploaded_file($images["tmp_name"][$file], $images_dir . $name
it works fine but I want to utilize
Storage::put
but it doesn't work
I have:
use Illuminate\Support\Facades.Storage;
and in filesystems.php
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'visibility' => 'public',
],
When I hover over 'put' in my PHPStorm IDE, it shows
"Method 'put' not found in Illuminate\Support\Facades\Storage"
class Storage extends Facade but there is no 'put' method in Facade. What could be the issue with Storage
?