DOCUMENTATION: add documentantion for installation commands
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\File;
|
||||
|
||||
class InstallAllModules extends Command
|
||||
@@ -38,11 +37,13 @@ class InstallAllModules extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
// crawl all subdirectories in modules path
|
||||
$modules = File::directories(config('modules.paths.modules'));
|
||||
|
||||
foreach ($modules as $module) {
|
||||
$moduleName = basename($module);
|
||||
|
||||
// try to install each module
|
||||
try {
|
||||
$this->call('install-module', ['name' => $moduleName]);
|
||||
} catch (\Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user