Laravel Get Project Root

[Solved] Laravel Get Project Root | Php - Code Explorer | yomemimo.com
Question : laravel get project root

Answered by : kwasi-kgwete

public_path(); // Path of public/
base_path(); // Path of application root
storage_path(); // Path of storage/
app_path(); // Path of app/

Source : https://www.itsolutionstuff.com/post/how-can-i-get-the-path-from-laravel-application-rootexample.html | Last Update : Mon, 31 Aug 20

Answers related to laravel get project root

Code Explorer Popular Question For Php