Skip to content
Sri Lanka · Colombo · GlobalMon–Fri, 09:00–18:00 IST

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 helperbase_path() - Laravel  helperconfig_path() - Laravel  helperdatabase_path() - Laravel  helpermix() - Laravel  helperpublic_path(...

Amila Rajapaksha
Written by
Amila Rajapaksha
CEO / Managing Director, Mobiz International (Pvt) Ltd

Amila Rajapaksha is the CEO and Managing Director of Mobiz International (Pvt) Ltd, a web design and development company based in Gampaha, Sri Lanka. Since 2010 he has helped businesses across Sri Lanka and overseas launch fast, search-friendly websites and online stores — working hands-on with WordPress, Magento and custom Laravel builds, and the SEO that makes them rank.

50 views 265 articles
Share:

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:

Share:

Related Articles

Comments (0)

Log in or sign up to leave a comment.

No comments yet. Be the first to share your thoughts!