How to access %appdata% in laravel?

Member

by samara , in category: PHP Frameworks , 10 months ago

How to access %appdata% in laravel?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by domenico , 10 months 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.

Related Threads:

How to access to laravel response?
How to access related table in laravel?
How to properly access a scope in laravel?
How to access a object field in laravel?
How to access a column value in models in laravel?
How to allow access to sub folders in laravel?