Update ListInstallations.php

This commit is contained in:
Bozhidar Slaveykov 2024-04-04 13:03:00 +03:00
parent b844aeb845
commit 599e58f70e

View file

@ -25,15 +25,14 @@ class ListInstallations extends ListRecords
$findWebsites = Website::all();
foreach ($findWebsites as $website) {
dd(file_put_contents('test.txt', 'test'));
dd(file_put_contents($website->domain_public. '/test.txt', 'test'));
$scan = new MicroweberInstallationsScanner();
$scan->setPath($website->domain_public);
$installations = $scan->scanRecusrive();
if (!empty($installations)) {
foreach ($installations as $installation) {
dd($installation);
}
}
}
}