PHP Get path in an Laravel application
Laravel framework provides several useful helper methods to get various paths required to access some commonly used directories/folders.
How to get app folder path in laravel ? Laravel app_path php
The app_path method returns the fully qualified ( absolute) path to your application’s app directory.
You may also use the app_path function to generate a fully qualified( absolute) path to a file relative to the application directory:
//get path to app directory $path = app_path(); //get path to a specific controller $path = app_path('Http/Controllers/Controller.php');