File tree Expand file tree Collapse file tree 2 files changed +28
-26
lines changed
Expand file tree Collapse file tree 2 files changed +28
-26
lines changed Original file line number Diff line number Diff line change @@ -218,21 +218,22 @@ protected function getVendorComponents(): array
218218 $ views = $ finder ->getHints ();
219219
220220 foreach ($ views as $ key => $ paths ) {
221- // First is always optional override in the resources/views folder
222- $ path = $ paths [ 0 ] . '/components ' ;
221+ foreach ( $ paths as $ path ) {
222+ $ path .= '/components ' ;
223223
224- if (!is_dir ($ path )) {
225- continue ;
226- }
224+ if (!is_dir ($ path )) {
225+ continue ;
226+ }
227227
228- array_push (
229- $ components ,
230- ...$ this ->findFiles (
231- $ path ,
232- 'blade.php ' ,
233- fn (\Illuminate \Support \Stringable $ k ) => $ k ->kebab ()->prepend ($ key .':: ' ),
234- )
235- );
228+ array_push (
229+ $ components ,
230+ ...$ this ->findFiles (
231+ $ path ,
232+ 'blade.php ' ,
233+ fn (\Illuminate \Support \Stringable $ k ) => $ k ->kebab ()->prepend ($ key .':: ' ),
234+ )
235+ );
236+ }
236237 }
237238
238239 return $ components ;
Original file line number Diff line number Diff line change @@ -218,21 +218,22 @@ $components = new class {
218218 $views = $finder->getHints();
219219
220220 foreach ($views as $key => $paths) {
221- // First is always optional override in the resources/views folder
222- $path = $paths[0] . '/components';
221+ foreach ($paths as $path) {
222+ $path .= '/components';
223223
224- if (!is_dir($path)) {
225- continue;
226- }
224+ if (!is_dir($path)) {
225+ continue;
226+ }
227227
228- array_push(
229- $components,
230- ...$this->findFiles(
231- $path,
232- 'blade.php',
233- fn (\\Illuminate\\Support\\Stringable $k) => $k->kebab()->prepend($key.'::'),
234- )
235- );
228+ array_push(
229+ $components,
230+ ...$this->findFiles(
231+ $path,
232+ 'blade.php',
233+ fn (\\Illuminate\\Support\\Stringable $k) => $k->kebab()->prepend($key.'::'),
234+ )
235+ );
236+ }
236237 }
237238
238239 return $components;
You can’t perform that action at this time.
0 commit comments