Class 'Cloudinary\Uploader' not found
This the line of code I am using:
\Cloudinary\Uploader::destroy($story->audio_url);
And when I try to run it, it gave me the message:
Class 'Cloudinary\Uploader' not found
Can anybody help we with this?
-
Now when I do
\Cloudinary\Uploader::destroy($story->audio_url, 'resource_type' => 'audio');
I'm getting the error:
syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')'
Do I have to include something? Like require/use Cloudinary at the beginning of my file? I already did
composer require 'cloudinary/cloudinary_php:^1.20.0'
I'm using Laravel and not pure PHP, if that helps diagnose the issue.
Please sign in to leave a comment.
Comments
3 comments