From 25bc3f81b3f0023fc9cdff0b261d0cd15270b74c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 19 Jan 2019 23:26:26 +0100 Subject: [PATCH] Remove asset() --- src/Traits/BootstrapsTenancy.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Traits/BootstrapsTenancy.php b/src/Traits/BootstrapsTenancy.php index 07b917bc..1775fc15 100644 --- a/src/Traits/BootstrapsTenancy.php +++ b/src/Traits/BootstrapsTenancy.php @@ -40,8 +40,7 @@ trait BootstrapsTenancy { $old = [ "storage_disks" => [], - "storage_path" => $this->app->storagePath, - "asset" => asset(''), + "storage_path" => $this->app->storagePath(), ]; $suffix = $this->app['config']['tenancy.filesystem.suffix_base'] . tenant('uuid'); @@ -49,7 +48,7 @@ trait BootstrapsTenancy // Storage facade foreach ($this->app['config']['tenancy.filesystem.disks'] as $disk) { $root = $this->app['config']["filesystems.disks.{$disk}.root"]; - + \Storage::disk($disk)->getAdapter()->setPathPrefix( $root . "/{$suffix}" ); @@ -60,9 +59,6 @@ trait BootstrapsTenancy // storage_path() $this->app->useStoragePath($this->app->storagePath() . "/{$suffix}"); - // asset() - $this->app('url')->forceRootUrl(asset('') . "/{$suffix}"); - $this->oldStoragePaths = $old; } }