public function init($file, array $data = null) { if ($data === null) { $data = $this->setJsonDefaults([]); } $this->app['filesystem']->write($file, json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)); }