CSV files in storage/app/data/csv not accessible?
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

karelvendla
HOBBYOP

2 years ago

fbb9abf1-59d9-4091-830c-01471f0d1c5e


2 years ago

how are you sure that there are actually files in that directory?


karelvendla
HOBBYOP

2 years ago

dude i really am stupid xD


karelvendla
HOBBYOP

2 years ago

You are right


karelvendla
HOBBYOP

2 years ago

there is no such folder in my goddamn github repo ..


karelvendla
HOBBYOP

2 years ago

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


Loading...