Skip to content

Commit e18f26b

Browse files
committed
fix: guzzle discovery in laravel 12
1 parent 8b294aa commit e18f26b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/WebPushServiceProvider.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace NotificationChannels\WebPush;
44

55
use GuzzleHttp\Client;
6+
use GuzzleHttp\Psr7\HttpFactory;
67
use Illuminate\Filesystem\Filesystem;
78
use Illuminate\Foundation\Application;
89
use Illuminate\Support\Collection;
@@ -34,7 +35,7 @@ public function boot(): void
3435
$this->app->when(WebPushChannel::class)
3536
->needs(WebPush::class)
3637
->give(fn (): WebPush => (new WebPush(
37-
$this->webPushAuth(), [], $this->webPushClient($config['client_options'])
38+
$this->webPushAuth(), [], $this->webPushClient($config['client_options']), new HttpFactory, new HttpFactory
3839
))
3940
->setReuseVAPIDHeaders(true)
4041
->setAutomaticPadding($config['automatic_padding']));

0 commit comments

Comments
 (0)