From 57feec299df938a5464681020df95d87bbd3c009 Mon Sep 17 00:00:00 2001 From: Mitul Golakiya Date: Fri, 4 Jun 2021 11:51:45 +0530 Subject: [PATCH] fix: span and p tag both checked for existing menu --- src/Generators/Scaffold/MenuGenerator.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Generators/Scaffold/MenuGenerator.php b/src/Generators/Scaffold/MenuGenerator.php index 357fc47b3..e5f921b0b 100755 --- a/src/Generators/Scaffold/MenuGenerator.php +++ b/src/Generators/Scaffold/MenuGenerator.php @@ -51,7 +51,9 @@ public function generate() { $this->menuContents .= $this->menuTemplate.infy_nl(); $existingMenuContents = file_get_contents($this->path); - if (Str::contains($existingMenuContents, ''.$this->commandData->config->mHumanPlural.'')) { + // adminlte uses

tab and coreui+stisla uses tag for menu + if (Str::contains($existingMenuContents, '

'.$this->commandData->config->mHumanPlural.'

') or + Str::contains($existingMenuContents, ''.$this->commandData->config->mHumanPlural.'')) { $this->commandData->commandObj->info('Menu '.$this->commandData->config->mHumanPlural.' is already exists, Skipping Adjustment.'); return;