I would recommend when never you created a folder to store it in the storage directory or public folder. You can use the storage_path('app/file.txt')
helper to get that or if you are having the folder inside the public directory public_path()
.
To get access to a something in your root directory use app_path()
Refer to https://laravel.com/docs/7.x/helpers to get more info.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community