for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace jlourenco\support\Helpers;
class FileLoader extends \Illuminate\Config\FileLoader
{
public function save($items, $environment, $group, $namespace = null)
$path = $this->getPath($namespace);
if (is_null($path))
return;
$file = (!$environment || ($environment == 'production')) ? "{$path}/{$group}.php" : "{$path}/{$environment}/{$group}.php";
$this->files->put($file, '<?php return ' . var_export($items, true) . ';');
}