Laravel 5.0使用自定义磁盘保存图像会导致错误

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

Second argument of put method is the file content, why are you passing the original name?

See Official Storage doc

Change with that :

$image = $request->file('content');
Storage::disk('blockcontentimages')->put('filename', $file);