mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 01:54:04 +00:00
small fixes
This commit is contained in:
parent
e949bf4373
commit
659eb2efc8
2 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ class TenantAssetsController extends Controller
|
||||||
public function asset($path)
|
public function asset($path)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
return response()->file(\storage_path("app/public/$path"));
|
return response()->file(storage_path("app/public/$path"));
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
abort(404);
|
abort(404);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ class DatabaseManager
|
||||||
$databaseManagers = config('tenancy.database_managers');
|
$databaseManagers = config('tenancy.database_managers');
|
||||||
|
|
||||||
if (! array_key_exists($driver, $databaseManagers)) {
|
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)) {
|
if (config('tenancy.queue_database_creation', false)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue