1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 18:34:04 +00:00

small fixes

This commit is contained in:
Samuel Štancl 2019-04-24 17:29:19 +02:00
parent e949bf4373
commit 659eb2efc8
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ class TenantAssetsController extends Controller
public function asset($path)
{
try {
return response()->file(\storage_path("app/public/$path"));
return response()->file(storage_path("app/public/$path"));
} catch (\Throwable $th) {
abort(404);
}

View file

@ -43,7 +43,7 @@ class DatabaseManager
$databaseManagers = config('tenancy.database_managers');
if (! array_key_exists($driver, $databaseManagers)) {
throw new Exception("Database could not be created: no database manager for driver $driver is registered.");
throw new \Exception("Database could not be created: no database manager for driver $driver is registered.");
}
if (config('tenancy.queue_database_creation', false)) {