diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php index 94adc9977..629983380 100644 --- a/bootstrap/autoload.php +++ b/bootstrap/autoload.php @@ -15,3 +15,14 @@ define('LARAVEL_START', microtime(true)); */ require __DIR__.'/../vendor/autoload.php'; + +// Load composer for modules +foreach (glob(__DIR__ . '/../modules/*') as $folder) { + $autoload = $folder . '/vendor/autoload.php'; + + if (!is_file($autoload)) { + continue; + } + + require $autoload; +} \ No newline at end of file