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.
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community