We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11beb63 commit ab77700Copy full SHA for ab77700
src/Providers/GrokServiceProvider.php
@@ -23,15 +23,11 @@ public function register(): void
23
);
24
});
25
26
- $this->app->singleton(GrokClient::class, function ($app) {
27
- return new GrokClient($app->make(GrokConfig::class));
28
- });
+ $this->app->singleton(GrokClient::class, fn ($app) => new GrokClient($app->make(GrokConfig::class)));
29
30
- $this->app->singleton(GrokAI::class, function ($app) {
31
- return new GrokAI($app->make(GrokClient::class));
32
+ $this->app->singleton(GrokAI::class, fn ($app) => new GrokAI($app->make(GrokClient::class)));
33
34
- $this->app->alias(GrokClient::class, 'grok-ai');
+ $this->app->alias(GrokAI::class, 'grok-ai');
35
}
36
37
public function boot(): void
0 commit comments