From 5bcf730685b44acd4d69421aab752e10cc7fe15d Mon Sep 17 00:00:00 2001 From: Setiawan Hu Date: Fri, 14 Aug 2020 00:54:51 +0700 Subject: [PATCH] Updated MultiSessionCommand updated: - updated wording - code refactoring --- src/Commands/MultiSessionCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/MultiSessionCommand.php b/src/Commands/MultiSessionCommand.php index 6e415aa..4b61481 100644 --- a/src/Commands/MultiSessionCommand.php +++ b/src/Commands/MultiSessionCommand.php @@ -67,7 +67,7 @@ class MultiSessionCommand extends Command $this->exportMigration($tableName, $user ?? null); - $this->info('Migration file exported.'); + $this->info('Migration file generated.'); } /** @@ -78,7 +78,7 @@ class MultiSessionCommand extends Command */ public function exportMigration(string $tableName, string $relation = null) { - if ($relation == null) { + if (is_null($relation)) { $relation = 'App/User'; }