I am trying to upload an image and store it in a certain location using a custom disk defined in the filesystems like this:
'blockcontentimages' => [
'driver' => 'local',
'root' => public_path() . '/static/core/img/templates',
],
In my controller I do this:
$image = $request->file('content');
$file = $image->getClientOriginalName();
Storage::disk('blockcontentimages')->put('filename', $file);
But I get the following error:
ErrorException in FilesystemManager.php line 230:
call_user_func_array() expects parameter 1 to be a valid callback, class 'Illuminate\Filesystem\FilesystemAdapter' does not have a method 'createDriver'
I am not sure what I am doing wrong here