diff --git a/composer.json b/composer.json index cd5ab273..2d15904b 100644 --- a/composer.json +++ b/composer.json @@ -26,11 +26,11 @@ "php": "^8.0", "doctrine/dbal": "~2.5|~3.0", "ramsey/uuid": "^4.0", - "laravel/framework": "^9.0|^10.0" + "laravel/framework": "^9.0|^10.0|^11.0" }, "require-dev": { "fakerphp/faker": "^1.12", - "laravel/laravel": "^9.0|^10.0", + "laravel/laravel": "^9.0|^10.0|^11.0", "mockery/mockery": "^1.0", "phpunit/phpunit": "^9.0", "symfony/dom-crawler": "~3.1" diff --git a/src/Website/Directory.php b/src/Website/Directory.php index 15edf9e5..4b656885 100644 --- a/src/Website/Directory.php +++ b/src/Website/Directory.php @@ -15,8 +15,8 @@ namespace Hyn\Tenancy\Website; use Hyn\Tenancy\Contracts\Tenant; -use Hyn\Tenancy\Environment; use Hyn\Tenancy\Contracts\Website; +use Hyn\Tenancy\Environment; use Illuminate\Contracts\Config\Repository; use Illuminate\Contracts\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem as LocalSystem; @@ -78,7 +78,7 @@ public function setWebsite(Website $website): Directory * @param bool $local * @return string */ - public function path(string $path = null, $local = false): string + public function path($path): string { $prefix = "{$this->getWebsite()->uuid}/"; @@ -90,7 +90,7 @@ public function path(string $path = null, $local = false): string $path = "$prefix$path"; } - if ($local && $this->isLocal()) { + if ($this->isLocal()) { $config = $this->filesystem->getConfig(); $path = sprintf( "%s/%s", @@ -102,6 +102,16 @@ public function path(string $path = null, $local = false): string return $path; } + public function putFile($path, $file = null, $options = []) + { + // tba + } + + public function putFileAs($path, $file, $name = null, $options = []) + { + // tba + } + /** * Get the contents of a file. *