Sign Up Form

Sign Up

Laravel Custom Package Problem Call to undefined method ?

310 163 point-admin
  • 0

We are  trying to create my custom package for laravel. There is my code, https://github.com/onurzdgn/cloudflare-image-api I have an problem when I using my project this package. The error is: Call to undefined method onurozdogan\CloudflareImageApi\Facades\CloudflareImageApi::upload() I thing I check everything, however I can’t find anything.

The issue is in CloudflareImageApiServiceProvider for this line

   $this->app->bind('cloudflare_image_api', CloudflareImageApi::class);

you have imported facade class use onurozdogan\CloudflareImageApi\Facades\CloudflareImageApi; remove this line or import use onurozdogan\CloudflareImageApi\CloudflareImageApi;

I found the problem. Problem coming use onurozdogan\CloudflareImageApi\Facades\CloudflareImageApi from CloudflareImageApiServiceProvider When I delete use problem fixed

Leave a Reply

Your email address will not be published.