robbiepaul / cloudconvert-laravel

A Laravel wrapper for the CloudConvert API
177 stars 34 forks source link

if using Laravel #56

Closed chantrea closed 7 years ago

chantrea commented 7 years ago

I tried to convert any videos from users upload to mp4. 1.) Is that mp4 always take care the best conversion bit rate and small size and will that video support all browsers like safari, IE, Chrome, Firefox, Opera, etc...

in my code CloudConvert::file($uploadedFile->getRealPath())->quality(70)->to(CloudConvert::S3('users/videos/'.$timestamp.".mp4"));

Error I got Non-static method RobbieP\CloudConvertLaravel\CloudConvert::file() should not be called statically

robbiepaul commented 7 years ago

do you have use RobbieP\CloudConvertLaravel\CloudConvert that the top of your class?

You should be using the facade instead

christianahvilla commented 5 years ago

Hi, I have the same problem. Did you resolve the issue already?

MuhammedTNCR commented 4 years ago

Hi @robbiepaul i did what you said with use statement but i am still getting the same error. Any help?