The Filesystem interface exists to abstract all types of implementations that do not necessarily support chmod. What would chmod do if the implementation of the interface was the Windows filesystem, or AWS?
Cheater912 said:
What would chmod do if the implementation of the interface was the Windows filesystem, or AWS?
It would call the PHP chmod function and let PHP handle it for the platform - which may mean a no-op for platforms such as Windows.
The Filesystem class already has platform specific stuff anyway - check the arguments to the makeDirectory method.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community