Skip to content

Commit dab5dd3

Browse files
committed
Bind ResponseFactory as a singleton
1 parent da6c6ec commit dab5dd3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ServiceProvider.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ public function boot()
1616
$this->registerMiddleware();
1717
}
1818

19+
public function register()
20+
{
21+
$this->app->singleton(ResponseFactory::class);
22+
}
23+
1924
protected function registerBladeDirective()
2025
{
2126
Blade::directive('inertia', function () {

0 commit comments

Comments
 (0)