File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ private function createView()
60
60
$ this ->files ->put ($ path , $ this ->getViewStub ());
61
61
62
62
$ this ->info (' - ' .$ this ->qualifyClass ($ this ->getNameInput ()).'View.blade.php - was created. (^_^) ' );
63
+
64
+ $ this ->printStarUs ();
63
65
}
64
66
65
67
/**
@@ -146,4 +148,19 @@ private function getViewStub()
146
148
{
147
149
return 'Note that you can reference partials within "App\Widgets" folder like this: @include("Widgets::somePartial") ' ;
148
150
}
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
+
149
166
}
You can’t perform that action at this time.
0 commit comments