laravel path to public code example
Example 1: public path laravel
echo base_path();
echo app_path();
echo public_path();
echo storage_path();
echo storage_path('app');
Example 2: path of app directory in controller laravel
How to get base path(Project Root) in laravel ?
base_path();
How to get storage folder path in laravel ?
storage_path();
How to get app folder path in laravel ?
app_path();
Example 3: laravel get public path url
echo base_path();
echo app_path();
echo public_path();
echo storage_path();
echo storage_path('app');