public function create($filename, $content)
    {
        $filename = str::path($filename);

        $this->createDirectory(dirname($filename));

        return file_put_contents($filename, $content);
    }
public function create($filename, $content)
    {
        $filename = str::path($filename);

        $this->createDirectory(dirname($filename));

        return file_put_contents($filename, $content);
    }
public function create ( $ filename , $ content ) { $ filename = str :: path ( $ filename ) ; $ this -> createDirectory ( dirname ( $ filename ) ) ; return file_put_contents ( $ filename , $ content ) ; }
To create file

@param string $filename
@param string $content

@return int
To create file