From 9e45f9390615e9a4e288ec5f48f6ca1e199764f6 Mon Sep 17 00:00:00 2001 From: Dan <619938+mallardduck@users.noreply.github.com> Date: Tue, 1 Mar 2022 10:17:19 -0500 Subject: [PATCH] Correct bootstrap for Orchestra 6.* --- bootstrap/app.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bootstrap/app.php b/bootstrap/app.php index e968738acb..ecf3118d3c 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -4,9 +4,14 @@ use Filament\FilamentServiceProvider; use Filament\Forms\FormsServiceProvider; use Filament\Tables\TablesServiceProvider; use Livewire\LivewireServiceProvider; +use Orchestra\Testbench\Concerns\CreatesApplication; use Orchestra\Testbench\Foundation\Application; -$app = (new Application()) +$basePathLocator = new class { + use CreatesApplication; +}; + +$app = (new Application($basePathLocator::applicationBasePath())) ->configure([ 'enables_package_discoveries' => true, ])