Answers for "how can i get folder all file in laravel"

PHP
2

how get all files name in one folder in laravel

$filesName = \File::files(base_path().'\database\migrations\\');
        $arr = [];
        foreach ($filesName as $file) {
            $ex = explode("\\"  , $file);
            array_push($arr , $ex[count($ex) - 1]);
        }
Posted by: Guest on July-18-2021

Code answers related to "how can i get folder all file in laravel"

Browse Popular Code Answers by Language