Skip to content

Commit

Permalink
Quick Fix: weird testbench package discovery error
Browse files Browse the repository at this point in the history
  • Loading branch information
richan-fongdasen committed Apr 15, 2024
1 parent 6af4819 commit f3b0bdf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
}
},
"scripts": {
"post-autoload-dump": "@composer run prepare",
"clear": "@php vendor/bin/testbench package:purge-turso-laravel --ansi",
"prepare": "@php vendor/bin/testbench package:discover --ansi",
"build": [
Expand Down
2 changes: 1 addition & 1 deletion src/TursoHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function request(): PendingRequest
public function resetClientState(): void
{
$this->baton = null;
$this->baseUrl = data_get($this->config, 'db_url');
$this->baseUrl = data_get($this->config, 'db_url', '');
$this->isOpen = false;
}
}
2 changes: 1 addition & 1 deletion src/TursoLaravelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function register(): void
parent::register();

$this->app->scoped(TursoManager::class, function () {
return new TursoManager(config('database.connections.turso'));
return new TursoManager(config('database.connections.turso', []));
});

$this->app->extend(DatabaseManager::class, function (DatabaseManager $manager) {
Expand Down

0 comments on commit f3b0bdf

Please sign in to comment.