Support the ongoing development of Laravel.io →
Requests Input
Last updated 2 years ago.
0

Don't know why, but I just tried to call the php class using a ' \ ' before and it just worked…

So for anyone with the same problem, use:

new \CurlFile($file_path,'file/exgpd',$file_name);

it worked as expected.

0

the class CurlFile is from the Curl extension. They need to be called with a \CurlFile because you're calling it from the App\Http\Controllers namespace.

0

Thanks for the explanation @astroanu :)

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.