We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cb4bcb commit 57feec2Copy full SHA for 57feec2
src/Generators/Scaffold/MenuGenerator.php
@@ -51,7 +51,9 @@ public function generate()
51
{
52
$this->menuContents .= $this->menuTemplate.infy_nl();
53
$existingMenuContents = file_get_contents($this->path);
54
- if (Str::contains($existingMenuContents, '<span>'.$this->commandData->config->mHumanPlural.'</span>')) {
+ // adminlte uses <p> tab and coreui+stisla uses <span> tag for menu
55
+ if (Str::contains($existingMenuContents, '<p>'.$this->commandData->config->mHumanPlural.'</p>') or
56
+ Str::contains($existingMenuContents, '<span>'.$this->commandData->config->mHumanPlural.'</span>')) {
57
$this->commandData->commandObj->info('Menu '.$this->commandData->config->mHumanPlural.' is already exists, Skipping Adjustment.');
58
59
return;
0 commit comments