League/Flysystem/Exception with message 'Impossible to create the root directory "C:/Users/Daniel.SFP/Documents/Pr
ojects/Credit Limit/Armanager/storage/app/C:/Users/Daniel.SFP/Documents/Projects/Credit Limit/Armanager/public". '
I can probably hard code the path to the public folder, but i'm puzzled as to why this happens. Could someone explain please.
Moving files, or in general working with the Storage class is based on the path of the configured storage driver. So if you have the local driver, by default it already points to the correct directory. So the only you need to do is using the relative path instead of the absolute path.
In this case, public_path returns the full absolute pathname, but you only need the relative one here.