Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how get all files name in one folder in laravel

        $filesName = File::files(base_path().'databasemigrations');
        $arr = [];
        foreach ($filesName as $file) {
            $ex = explode(""  , $file);
            array_push($arr , $ex[count($ex) - 1]);
        }
 
PREVIOUS NEXT
Tagged: #files #folder #laravel
ADD COMMENT
Topic
Name
7+9 =