Skip to content

Commit 651704f

Browse files
authored
Merge pull request #75 from rojtjo/container-binding
Bind ResponseFactory as a singleton
2 parents 51600c7 + dab5dd3 commit 651704f

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
@@ -18,6 +18,11 @@ public function boot()
1818
$this->registerMiddleware();
1919
}
2020

21+
public function register()
22+
{
23+
$this->app->singleton(ResponseFactory::class);
24+
}
25+
2126
protected function registerBladeDirective()
2227
{
2328
Blade::directive('inertia', function () {

0 commit comments

Comments
 (0)