Support the ongoing development of Laravel.io →
posted 3 years ago
Laravel
Last updated 1 year ago.
0

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.