80653/how-to-get-public-directory-in-laravel
Hello @kartik,
Use public_path()
For reference:
// Path to the project's root folder echo base_path(); // Path to the 'app' folder echo app_path(); // Path to the 'public' folder echo public_path(); // Path to the 'storage' folder echo storage_path(); // Path to the 'storage/app' folder echo storage_path('app');
Hope this is helpfull!!
Thank You!!
Hello @kartik In eloquent you can use this $users ...READ MORE
Hello, Route::getRoutes() returns a RouteCollection. On each element, you can ...READ MORE
If you are inside a blade template {{ ...READ MORE
Hello @kartik, Here is the way I do ...READ MORE
Hey @kartik, First you have to go to ...READ MORE
Named route is used to give specific ...READ MORE
Hello, This is simple you just need to ...READ MORE
Hey @kartik, Named routing is another amazing feature of ...READ MORE
Hey, In order to identify the type of ...READ MORE
Looking at the Laravel API: Request::ip(); Internally, it uses the getClientIps the ...READ MORE
OR
Already have an account? Sign in.