Open NoahNxT opened 5 months ago
Hello, I got this issue as well and I'm currently investigating it, so far I got to a point that I made it working but I have to warn you this is definitely not for non-local use.
Here's a possible fix if your problem is just generating the ide-helper file.
HeloLaravelServiceProvider.php
protected function bootMailable()
{
$instance = app()->make(MailManager::class, ['app' => app()]);
$mailerInstance = app()->make(Mailer::class);
Mail::swap($instance);
$this->app->instance(MailerContract::class, $mailerInstance);
}
imports are
use BeyondCode\HeloLaravel\Mailer;
use BeyondCode\HeloLaravel\MailManager;
use Illuminate\Contracts\Mail\Mailer as MailerContract;
In the meantime I'm looking for a more appropriate fix.
Seems like this issue was raised again, here are some pointers.
https://github.com/beyondcode/helo-laravel/issues/37 https://github.com/barryvdh/laravel-ide-helper/issues/1422
Have do you have multiple Mail::fake()
calls by any chance?
The ::fake issue was fixed on
https://github.com/laravel/framework/pull/46188
Thank you @gabidj your suggestion above to manually add the changes into HeloLaravelServiceProvider.php helped me get through composer update :)
Hi!
recently the package started to have conflicts with the Barryvdh\LaravelIdeHelper for some reason. Looks like type mismatching since one of the latest updates.
Command:
php artisan ide-helper:generate
Laravel: v11.11.1 PHP: 8.3.6 Composer: 2.7.4Also tried reinstalling, deleting the vendor,
php artisan clear-compiled
Console
Logs: