karelvendla
HOBBYOP
2 years ago
Hello,
I've setup a laravel api on railway.
I have a seeder that tries to load csv files from the directory mentioned in the title.
$files = Storage::disk('local')->files('data/csv');
echo 'Files: ' . PHP_EOL;
print_r($files);the printed out files is just an empty array ..
#15 1.242 Files:
#15 1.242 Array
#15 1.242 (
#15 1.242 )Any Ideas?
7 Replies
2 years ago
how are you sure that there are actually files in that directory?
Thanks for asking that .. Im gonna put the computer down for today xD its time to get some shut eye before anything
2 years ago
haha always gotta be asking these kind of questions