Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
laravel create new file if not exists
Eugene Demidov
Programming language:
PHP
2021-04-05 00:44:38
0
Q:
laravel create new file if not exists
Pamela Fey
Code:
PHP
2021-05-31 14:43:55
if (!file_exists('somefile.txt')) { touch('somefile.txt', strtotime('-1 days')); }
0
Tags
file
new
create
Related
codeigniter check view file exists
laravel include config
check table exists in db laravel
include a file in laravel controller
laravel drop column if exists
php file exist
laravel if view exists
laravel check record exists
file exist php
laravel storage check file exists
php check if file exists
laravel db not found
ziparchive laravel not found
New to Communities?
Join the community