mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 09:34:05 +00:00
Fix merge errors
This commit is contained in:
parent
b0560331ed
commit
8cbc855b0a
2 changed files with 9 additions and 5 deletions
|
|
@ -4,12 +4,12 @@ declare(strict_types=1);
|
|||
|
||||
namespace Stancl\Tenancy\Features;
|
||||
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Stancl\Tenancy\Contracts\Feature;
|
||||
use Stancl\Tenancy\Contracts\Tenant;
|
||||
use Stancl\Tenancy\Database\Models\ImpersonationToken;
|
||||
use Stancl\Tenancy\Tenancy;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Stancl\Tenancy\Contracts\Tenant;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Stancl\Tenancy\Contracts\Feature;
|
||||
use Stancl\Tenancy\Database\Models\ImpersonationToken;
|
||||
|
||||
class UserImpersonation implements Feature
|
||||
{
|
||||
|
|
@ -56,6 +56,8 @@ class UserImpersonation implements Feature
|
|||
public static function alwaysBootstrap(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function isImpersonating(): bool
|
||||
{
|
||||
return session()->has('tenancy_impersonating');
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ function filesAndFoldersExcluding(array $exclude = []): array
|
|||
$dirs = scandir(__DIR__);
|
||||
|
||||
return array_filter($dirs, fn($dir) => ! in_array($dir, array_merge(['.', '..'], $exclude) , true));
|
||||
}
|
||||
|
||||
function withTenantDatabases()
|
||||
{
|
||||
Event::listen(TenantCreated::class, JobPipeline::make([CreateDatabase::class])->send(function (TenantCreated $event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue