diff --git a/app/Console/Commands/ImportMigrations.php b/app/Console/Commands/ImportMigrations.php index 7e07073e2cf2..9e227c72bd3c 100644 --- a/app/Console/Commands/ImportMigrations.php +++ b/app/Console/Commands/ImportMigrations.php @@ -64,8 +64,6 @@ class ImportMigrations extends Command */ public function __construct() { - $this->faker = Factory::create(); - parent::__construct(); } @@ -76,6 +74,8 @@ class ImportMigrations extends Command */ public function handle() { + $this->faker = Factory::create(); + $this->buildCache(); $path = $this->option('path') ?? public_path('storage/migrations/import'); diff --git a/app/Console/Commands/MobileLocalization.php b/app/Console/Commands/MobileLocalization.php index e4d12c98bc33..482cf9042ade 100644 --- a/app/Console/Commands/MobileLocalization.php +++ b/app/Console/Commands/MobileLocalization.php @@ -93,17 +93,6 @@ class MobileLocalization extends Command $text = str_replace(['', ''], '', $text); $text = str_replace(['', ''], '', $text); -//replace the three lines above with this -// if($language->locale == 'ar') { -// $text = str_replace('\n', " ", $text); -// } - -// $text = str_replace(['', '','', '','', ''], '', $text); -// $text = str_replace('"', "'", $text); - - - - echo "'$key': '$text',\n"; }