FEATURE: log not writable module.json in modules

This commit is contained in:
Michal Kváček
2016-08-13 18:59:14 +02:00
parent 42967e72cd
commit dc185bdc2e
+2
View File
@@ -4,6 +4,7 @@ namespace App\Providers;
use App\Models\Module;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\ServiceProvider;
class ModuleManager extends ServiceProvider
@@ -57,6 +58,7 @@ class ModuleManager extends ServiceProvider
// check if module config is writable
if (!is_writable(dirname($path))) {
Log::warning('Cannot write to '.$path);
return;
}