mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:44:04 +00:00
PHP 8 support (#542)
* PHP 8 support, test workflow syntax * Try using a custom data structure in the workflow * Try using matrix include * Default PHP target * single include * fix composer package name * [WIP] Try using dev-master for valuestore * Update spatie/valuestore constraint to be stable
This commit is contained in:
parent
126afcd0dd
commit
30a1f9102d
6 changed files with 40 additions and 35 deletions
|
|
@ -59,7 +59,11 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
|
|||
$filesystemDisk = Storage::disk($disk);
|
||||
$this->originalPaths['disks'][$disk] = $filesystemDisk->getAdapter()->getPathPrefix();
|
||||
|
||||
if ($root = str_replace('%storage_path%', storage_path(), $this->app['config']["tenancy.filesystem.root_override.{$disk}"])) {
|
||||
if ($root = str_replace(
|
||||
'%storage_path%',
|
||||
storage_path(),
|
||||
$this->app['config']["tenancy.filesystem.root_override.{$disk}"] ?? ''
|
||||
)) {
|
||||
$filesystemDisk->getAdapter()->setPathPrefix($finalPrefix = $root);
|
||||
} else {
|
||||
$root = $this->app['config']["filesystems.disks.{$disk}.root"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue