1How to get base path(Project Root) in laravel ?
2base_path(); // Path of application root
3
4
5How to get storage folder path in laravel ?
6storage_path(); // Path of storage/
7
8
9How to get app folder path in laravel ?
10app_path(); // Path of app/
1use Illuminate\Support\Facades\Storage;
2
3$path = Storage::path('file.jpg');
1use Illuminate\Support\Facades\Storage;
2
3Storage::disk('local')->put('example.txt', 'Contents');