Answers for "laravel create new file if not exists"

PHP
0

laravel create new file if not exists

if (!file_exists('somefile.txt')) {
    touch('somefile.txt', strtotime('-1 days'));
}
Posted by: Guest on August-13-2020

Code answers related to "laravel create new file if not exists"

Browse Popular Code Answers by Language