Laravel membuat file baru jika tidak ada
if (!file_exists('somefile.txt')) {
touch('somefile.txt', strtotime('-1 days'));
}
Blue-eyed Bat
if (!file_exists('somefile.txt')) {
touch('somefile.txt', strtotime('-1 days'));
}