File tree 4 files changed +25
-19
lines changed
4 files changed +25
-19
lines changed Original file line number Diff line number Diff line change 15
15
],
16
16
"require" : {
17
17
"php" : " ^8.0" ,
18
- "illuminate/console" : " ^9.0 |^10.0|^11.0" ,
19
- "illuminate/contracts" : " ^9.0 |^10.0|^11.0" ,
20
- "illuminate/support" : " ^9.0 |^10.0|^11.0" ,
18
+ "illuminate/console" : " ^9.52.16 |^10.0|^11.0" ,
19
+ "illuminate/contracts" : " ^9.52.16 |^10.0|^11.0" ,
20
+ "illuminate/support" : " ^9.52.16 |^10.0|^11.0" ,
21
21
"symfony/yaml" : " ^6.0|^7.0"
22
22
},
23
23
"bin" : [
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function handle()
41
41
}
42
42
43
43
if ($ invalidServices = array_diff ($ services , $ this ->services )) {
44
- $ this ->error ('Invalid services [ ' .implode (', ' , $ invalidServices ).']. ' );
44
+ $ this ->components -> error ('Invalid services [ ' .implode (', ' , $ invalidServices ).']. ' );
45
45
46
46
return 1 ;
47
47
}
@@ -50,8 +50,9 @@ public function handle()
50
50
$ this ->replaceEnvVariables ($ services );
51
51
$ this ->configurePhpUnit ();
52
52
53
- $ this ->info ('Additional Sail services installed successfully. ' );
54
-
55
53
$ this ->prepareInstallation ($ services );
54
+
55
+ $ this ->output ->writeln ('' );
56
+ $ this ->components ->info ('Additional Sail services installed successfully. ' );
56
57
}
57
58
}
Original file line number Diff line number Diff line change @@ -248,22 +248,14 @@ protected function prepareInstallation($services)
248
248
}
249
249
250
250
if (count ($ services ) > 0 ) {
251
- $ status = $ this ->runCommands ([
251
+ $ this ->runCommands ([
252
252
'./vendor/bin/sail pull ' .implode (' ' , $ services ),
253
253
]);
254
-
255
- if ($ status === 0 ) {
256
- $ this ->info ('Sail images installed successfully. ' );
257
- }
258
254
}
259
255
260
- $ status = $ this ->runCommands ([
256
+ $ this ->runCommands ([
261
257
'./vendor/bin/sail build ' ,
262
258
]);
263
-
264
- if ($ status === 0 ) {
265
- $ this ->info ('Sail build successful. ' );
266
- }
267
259
}
268
260
269
261
/**
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public function handle()
42
42
}
43
43
44
44
if ($ invalidServices = array_diff ($ services , $ this ->services )) {
45
- $ this ->error ('Invalid services [ ' .implode (', ' , $ invalidServices ).']. ' );
45
+ $ this ->components -> error ('Invalid services [ ' .implode (', ' , $ invalidServices ).']. ' );
46
46
47
47
return 1 ;
48
48
}
@@ -55,8 +55,21 @@ public function handle()
55
55
$ this ->installDevContainer ();
56
56
}
57
57
58
- $ this ->info ('Sail scaffolding installed successfully. ' );
59
-
60
58
$ this ->prepareInstallation ($ services );
59
+
60
+ $ this ->output ->writeln ('' );
61
+ $ this ->components ->info ('Sail scaffolding installed successfully. You may run your Docker containers using Sail \'s "up" command. ' );
62
+
63
+ $ this ->output ->writeln ('<fg=gray>➜</> <options=bold>./vendor/bin/sail up</> ' );
64
+
65
+ if (in_array ('mysql ' , $ services ) ||
66
+ in_array ('mariadb ' , $ services ) ||
67
+ in_array ('pgsql ' , $ services )) {
68
+ $ this ->components ->warn ('A database service was installed. Run "artisan migrate" to prepare your database: ' );
69
+
70
+ $ this ->output ->writeln ('<fg=gray>➜</> <options=bold>./vendor/bin/sail artisan migrate</> ' );
71
+ }
72
+
73
+ $ this ->output ->writeln ('' );
61
74
}
62
75
}
You can’t perform that action at this time.
0 commit comments