I'm trying to get all the map names form a directory (path) in laravel 4.2.
So I have a path public\pictures\overall
and in that folder there are alot of other folders named like this-is-folder-one
so the spaces are -
. Now I want to get all the folder names with spaces and no the -
symbol.
I tried alot of methods like glob();
etc... But everytime it gives me the full path, and I don't want to have that.
Optionally I would Add and image to it (thumbnail) with a folder image. But that isn't necessary.
Hope someone can help me fulley out of this. (maybe the view and the controller?)
Kindest regards, Robin