Skip to content

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.

  • app_path() – Laravel app_path helper
  • base_path() – Laravel  helper
  • config_path() – Laravel  helper
  • database_path() – Laravel  helper
  • mix() – Laravel  helper
  • public_path() – Laravel  helper
  • resource_path() – Laravel  helper
  • storage_path() – Laravel  helper

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:

Sri Lanka

Australia

About Domain

www.joomlasrilanka.com is owned and operated by Mobiz International PVT LTD. Joomla trademark is used under limited permission granted by Joomla project.

Read More

Affiliations / Partners

sortlist certified web designer company

© 2023 Mobiz International (Pvt) Ltd. All rights reserved | Web design and development company in Sri Lanka