check if module.json exists

This commit is contained in:
Denis Duliçi 2020-07-06 17:22:24 +03:00
parent 5ee5a2c014
commit eca4588780

View File

@ -405,6 +405,15 @@ trait Modules
$temp_path = storage_path('app/temp') . '/' . $path;
if (!is_file($temp_path . '/module.json')) {
return [
'success' => false,
'error' => true,
'message' => trans('modules.errors.finish', ['module' => '']),
'data' => null,
];
}
$modules_path = config('module.paths.modules');
// Create modules directory