1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 14:54:03 +00:00

custom path

This commit is contained in:
Abrar Ahmad 2022-09-20 11:22:23 +05:00
parent 6e513c49f4
commit 9c9a3d09fc

View file

@ -230,7 +230,12 @@ test('path used by sqlite manager can be customized', function () {
})->toListener());
// Set custom path for SQLite file
SQLiteDatabaseManager::$path = $customPath = storage_path();
SQLiteDatabaseManager::$path = $customPath = database_path('custom');
if (! is_dir($customPath)) {
// Create custom directory
mkdir($customPath);
}
$name = Str::random(8). '.sqlite';
Tenant::create([