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

Fix code style (php-cs-fixer)

This commit is contained in:
PHP CS Fixer 2022-11-18 08:51:20 +00:00
parent 504d02354a
commit d7177c94d6

View file

@ -4,8 +4,8 @@ declare(strict_types=1);
namespace Stancl\Tenancy\Commands;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Console\Migrations\FreshCommand;
use Illuminate\Support\Facades\Schema;
class MigrateFreshOverride extends FreshCommand
{
@ -13,7 +13,7 @@ class MigrateFreshOverride extends FreshCommand
{
if (config('tenancy.database.drop_tenant_databases_on_migrate_fresh')) {
$tenantModel = tenancy()->model();
if (Schema::hasTable($tenantModel->getTable())) {
$tenantModel::cursor()->each->delete();
}