From 6b6295571fe1fb4944eef3a68de362225c0f0519 Mon Sep 17 00:00:00 2001 From: Agli Panci Date: Thu, 7 Apr 2022 10:46:24 +0200 Subject: [PATCH] create a new instance of the CaseBuilder in the SC bind --- src/LaravelCaseServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LaravelCaseServiceProvider.php b/src/LaravelCaseServiceProvider.php index 614158e..9b4cf77 100644 --- a/src/LaravelCaseServiceProvider.php +++ b/src/LaravelCaseServiceProvider.php @@ -35,7 +35,7 @@ public function register() $this->app->bind( 'casebuilder', - fn ($app) => $app->make(CaseBuilder::class) + fn($app) => new CaseBuilder($app->make(Builder::class), new Grammar()) ); } }