@@ -27,7 +27,12 @@ public static function installProductionPackages()
27
27
'whitecube/laravel-sluggable '
28
28
];
29
29
30
- static ::$ composer ->run (['require ' , ...$ packages , '--no-interaction ' ]);
30
+ static ::$ composer ->run ([
31
+ 'require ' ,
32
+ ...$ packages ,
33
+ '--sort-packages ' ,
34
+ '--no-interaction '
35
+ ]);
31
36
}
32
37
33
38
public static function installDevelopmentPackages ()
@@ -39,15 +44,44 @@ public static function installDevelopmentPackages()
39
44
'spatie/laravel-ray ' ,
40
45
];
41
46
42
- static ::$ composer ->run (['require ' , ...$ packages , '--dev ' , '--no-interaction ' ]);
47
+ static ::$ composer ->run ([
48
+ 'require ' ,
49
+ ...$ packages ,
50
+ '--dev ' ,
51
+ '--sort-packages ' ,
52
+ '--no-interaction '
53
+ ]);
43
54
44
- // Pest requires phpunit/phpunit to be removed
45
- static ::$ composer ->run (['remove ' , 'phpunit/phpunit ' , '--no-interaction ' ]);
46
- static ::$ composer ->run (['remove ' , 'phpunit/phpunit ' , '--dev ' , '--no-interaction ' ]);
55
+ // Pest requires phpunit/phpunit to be removed.
56
+ // We'll removed both from the `require` and `require-dev` sections:
57
+ static ::$ composer ->run ([
58
+ 'remove ' ,
59
+ 'phpunit/phpunit ' ,
60
+ '--no-interaction '
61
+ ]);
62
+ static ::$ composer ->run ([
63
+ 'remove ' ,
64
+ 'phpunit/phpunit ' ,
65
+ '--dev ' ,
66
+ '--no-interaction '
67
+ ]);
47
68
48
69
// Install Pest
49
- static ::$ composer ->run (['require ' , 'pestphp/pest ' , '--dev ' , '--with-all-dependencies ' , '--no-interaction ' ]);
50
- static ::$ composer ->run (['require ' , 'pestphp/pest-plugin-laravel ' , '--dev ' , '--no-interaction ' ]);
70
+ static ::$ composer ->run ([
71
+ 'require ' ,
72
+ 'pestphp/pest ' ,
73
+ '--dev ' ,
74
+ '--with-all-dependencies ' ,
75
+ '--sort-packages ' ,
76
+ '--no-interaction '
77
+ ]);
78
+ static ::$ composer ->run ([
79
+ 'require ' ,
80
+ 'pestphp/pest-plugin-laravel ' ,
81
+ '--dev ' ,
82
+ '--sort-packages ' ,
83
+ '--no-interaction '
84
+ ]);
51
85
}
52
86
53
87
public static function copyStub ()
0 commit comments