| Viewed 20 times

How to get the path to the app directory in laravel


How to get the path to the app directory in laravel

1 Answer
Mohammad Qandeel
Answered
0

You can use the app_path() helper function to get the path to the app directory in laravel

For Laravel developers, think of the app directory like a house of your project.

If you want to get the path to the app directory in laravel you can use the app_path() helper function which will return a string

Example of how to use app_path() helper function

$path = app_path();

Output (output difference based on your project)

"C:\xampp\htdocs\laravel\shop\app"

 


Related FAQ