1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 07:54:03 +00:00

Apply fixes from StyleCI

This commit is contained in:
stancl 2020-05-03 02:01:15 +00:00 committed by StyleCI Bot
parent 15e45fa551
commit df19eb1821
3 changed files with 4 additions and 3 deletions

View file

@ -83,7 +83,7 @@ class DatabaseManager
*/ */
public function createTenantConnection(Tenant $tenant) public function createTenantConnection(Tenant $tenant)
{ {
$this->app['config']["database.connections.tenant"] = $tenant->database()->connection(); $this->app['config']['database.connections.tenant'] = $tenant->database()->connection();
} }
/** /**

View file

@ -4,7 +4,6 @@ declare(strict_types=1);
namespace Stancl\Tenancy\Tests; namespace Stancl\Tenancy\Tests;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Stancl\Tenancy\Tenant; use Stancl\Tenancy\Tenant;
use Stancl\Tenancy\Tests\Etc\User; use Stancl\Tenancy\Tests\Etc\User;

View file

@ -1,8 +1,10 @@
<?php <?php
declare(strict_types=1);
namespace Stancl\Tenancy\Tests\Etc; namespace Stancl\Tenancy\Tests\Etc;
class User extends \Illuminate\Database\Eloquent\Model class User extends \Illuminate\Database\Eloquent\Model
{ {
protected $guarded = []; protected $guarded = [];
} }