Skip to content

Commit 6adfdc6

Browse files
Update WidgetGenerator.php
1 parent 0ff1295 commit 6adfdc6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/WidgetGenerator.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ private function createView()
6060
$this->files->put($path, $this->getViewStub());
6161

6262
$this->info(' - '.$this->qualifyClass($this->getNameInput()).'View.blade.php - was created. (^_^)');
63+
64+
$this->printStarUs();
6365
}
6466

6567
/**
@@ -146,4 +148,19 @@ private function getViewStub()
146148
{
147149
return 'Note that you can reference partials within "App\Widgets" folder like this: @include("Widgets::somePartial") ';
148150
}
151+
152+
private function printStarUs()
153+
{
154+
if (mt_rand (1, 6) !== 4) {
155+
return null;
156+
}
157+
$this->info('************************ Star It ************************');
158+
$this->info('Dear developer, if you find Laravel-Widgetize useful for you');
159+
$this->info('Please, star it on github.com to recommend it to others.');
160+
$this->info('Visit:');
161+
$this->info('https://github.com/imanghafoori1/laravel-widgetize');
162+
$this->info('Thanks. lol ');
163+
$this->info('********************************************************');
164+
}
165+
149166
}

0 commit comments

Comments
 (0)