This is concerning Laravel 5.
I can see in Illuminate\Filesystem\Filesystem
a method called glob($pattern, $flags = 0)
Unfortunately, this method is not reflected in the default FilesystemAdapter
shipped with Laravel 5.
This would be great, due to the fact that I would need to do something like Storage::disk('local')->glob([_]*[.blade.php]);
(in order to get all stored blade files starting with an underscore.
What is the cleanest way to achieve this?
Filesystem::glob()
? – EstreatFilesystem::glob()
would not allow using Storage and the config that goes with it... I guess I would need to add a new File Driver (or extend the "local" driver) but this is way too complex... – DeciliterFilesystem->disk('local')->glob()
? – Transportationglob
is excluded from the interface because it's either expensive or untenable on certain filesystems. That said, @Marcin Nabiałek is likely the best approach. – Where