public function putIfNotExists($file, $contents)
    {
        if (!$this->filesystem->exists($file)) {
            return $this->filesystem->put($file, $contents);
        }

        return $this->fileService->get($file);
    }
public function putIfNotExists($file, $contents)
    {
        if (!$this->filesystem->exists($file)) {
            return $this->filesystem->put($file, $contents);
        }

        return $this->fileService->get($file);
    }
public function putIfNotExists ( $ file , $ contents ) { if ( ! $ this -> filesystem -> exists ( $ file ) ) { return $ this -> filesystem -> put ( $ file , $ contents ) ; } return $ this -> fileService -> get ( $ file ) ; }
Make a file if it doesnt exist.

@param  string $file
@param  mixed $contents

@return void
Make a file if it doesnt exist .