From dfdb306fe9482c4359ea1b7e1e5fc4c3e62ccfc9 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Fri, 1 Dec 2017 17:31:37 -0600 Subject: [PATCH] don't add a frontend link by default in the generator --- modules/Sample/Providers/SampleServiceProvider.php | 2 +- resources/modules/stubs/scaffold/provider.stub | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/Sample/Providers/SampleServiceProvider.php b/modules/Sample/Providers/SampleServiceProvider.php index 29041089..e0261e3d 100644 --- a/modules/Sample/Providers/SampleServiceProvider.php +++ b/modules/Sample/Providers/SampleServiceProvider.php @@ -44,7 +44,7 @@ class SampleServiceProvider extends ServiceProvider public function registerLinks() { // Show this link if logged in - $this->moduleSvc->addFrontendLink('Sample', '/sample', '', $logged_in=true); + // $this->moduleSvc->addFrontendLink('Sample', '/sample', '', $logged_in=true); // Admin links: $this->moduleSvc->addAdminLink('Sample', '/sample/admin'); diff --git a/resources/modules/stubs/scaffold/provider.stub b/resources/modules/stubs/scaffold/provider.stub index f3470a7a..b4b24d01 100644 --- a/resources/modules/stubs/scaffold/provider.stub +++ b/resources/modules/stubs/scaffold/provider.stub @@ -44,7 +44,7 @@ class $CLASS$ extends ServiceProvider public function registerLinks() { // Show this link if logged in - $this->moduleSvc->addFrontendLink('$STUDLY_NAME$', '/$LOWER_NAME$', '', $logged_in=true); + // $this->moduleSvc->addFrontendLink('$STUDLY_NAME$', '/$LOWER_NAME$', '', $logged_in=true); // Admin links: $this->moduleSvc->addAdminLink('$STUDLY_NAME$', '/$LOWER_NAME$/admin');