Fix creating device groups issue (#10521)

* Fix creating device groups issue
Not being able to write the device relationships file should not be fatal

* remove @

* bootstrap.php calls this, Laravel isn't booted yet

* d_echo does not include \n
This commit is contained in:
Tony Murray
2019-09-25 06:41:18 +00:00
committed by GitHub
parent 5a8d3aee58
commit 31eced4875

View File

@@ -170,7 +170,11 @@ class Schema
$base => $paths
];
file_put_contents($cache_file, serialize($cache));
if (is_writable($cache_file)) {
file_put_contents($cache_file, serialize($cache));
} else {
d_echo("Could not write cache file ($cache_file)!\n");
}
}
return $cache[$base];