How to access %appdata% in laravel?

Member

by samara , in category: PHP Frameworks , 3 days ago

How to access %appdata% in laravel?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by domenico , 2 days ago

@samara 

In Laravel, you can access the appdata folder by using the storage_path() function. The storage_path() function returns the full path to the storage directory on the file system.


You can use the storage_path() function like this:

1
$path = storage_path('appdata');


This will give you the full path to the appdata folder in the storage directory. You can then use this path to read or write files within the appdata folder.