beyondcode / helo-laravel

HELO Laravel helper package to add
MIT License
88 stars 25 forks source link

Issue when requiring package. #15

Closed Erth0 closed 11 months ago

Erth0 commented 4 years ago

Getting this issue when installing this package or when requiring therobfonz/laravel-mandrill-driver It seems like there is something wrong when this 2 need to be installed. Anyone else has come to this issue before?

> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   BadMethodCallException 

  Method BeyondCode\HeloLaravel\Laravel7Mailer::extend does not exist.

  at vendor/laravel/framework/src/Illuminate/Support/Traits/Macroable.php:103
     99|      */
    100|     public function __call($method, $parameters)
    101|     {
    102|         if (! static::hasMacro($method)) {
  > 103|             throw new BadMethodCallException(sprintf(
    104|                 'Method %s::%s does not exist.', static::class, $method
    105|             ));
    106|         }
    107|

      +9 vendor frames 
  10  [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(LaravelMandrill\MandrillServiceProvider))

      +5 vendor frames 
  16  artisan:35
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
szabizs commented 4 years ago

I have the same issue.

szabizs commented 4 years ago

I've added this static function to vendor\beyondcode\helo-laravel\src\Laravel7Mailer.php and it solved my problem.

    /**
     * Void function, bug fix for BeyondCode Hello
     */
    public static function extend()
    {

    }
Erth0 commented 4 years ago

Yeah i did this as well but the issue is when this will be update will be overridden. Probably the best way is to be fixed by Marcel.

szabizs commented 4 years ago

Yeah i did this as well but the issue is when this will be update will be overridden. Probably the best way is to be fixed by Marcel.

True :)

jongravois commented 3 years ago

I have the same issue using PostmarkServiceProvider

flatcapco commented 3 years ago

Trying to install laravel-postmark whilst Helo is installed and getting the same issue