From 4f61d1c662b580add136dfb686679aa197bf1f88 Mon Sep 17 00:00:00 2001 From: denisdulici Date: Sat, 2 Dec 2017 13:22:10 +0300 Subject: [PATCH] close #115 --- bootstrap/autoload.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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