diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94cbc988..2d6aa1d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: - name: Install dependencies run: docker-compose exec -T test composer require --no-interaction "laravel/framework:${{ matrix.laravel }}" - name: Run tests - run: ./fulltest + run: ./test - name: Send code coverage to codecov env: CODECOV_TOKEN: 24382d15-84e7-4a55-bea4-c4df96a24a9b diff --git a/assets/config.php b/assets/config.php index de6f785e..36846313 100644 --- a/assets/config.php +++ b/assets/config.php @@ -28,11 +28,11 @@ return [ * To configure their behavior, see the config keys below. */ 'bootstrappers' => [ - 'database' => Stancl\Tenancy\Bootstrappers\DatabaseTenancyBootstrapper::class, - 'cache' => Stancl\Tenancy\Bootstrappers\CacheTenancyBootstrapper::class, - 'filesystem' => Stancl\Tenancy\Bootstrappers\FilesystemTenancyBootstrapper::class, - 'queue' => Stancl\Tenancy\Bootstrappers\QueueTenancyBootstrapper::class, - // 'redis' => Stancl\Tenancy\Bootstrappers\RedisTenancyBootstrapper::class, // Note: phpredis is needed + Stancl\Tenancy\Bootstrappers\DatabaseTenancyBootstrapper::class, + Stancl\Tenancy\Bootstrappers\CacheTenancyBootstrapper::class, + Stancl\Tenancy\Bootstrappers\FilesystemTenancyBootstrapper::class, + Stancl\Tenancy\Bootstrappers\QueueTenancyBootstrapper::class, + // Stancl\Tenancy\Bootstrappers\RedisTenancyBootstrapper::class, // Note: phpredis is needed ], /** @@ -83,6 +83,8 @@ return [ * * Each key in cache will have a tag applied on it. This tag is used to * scope the cache both when writing to it and when reading from it. + * + * You can clear cache selectively by specifying the tag. */ 'cache' => [ 'tag_base' => 'tenant', // This tag_base, followed by the tenant_id, will form a tag that will be applied on each cache call. diff --git a/fulltest b/fulltest deleted file mode 100755 index fa5435e3..00000000 --- a/fulltest +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -set -e - -# for development -docker-compose up -d -./test "$@"