Answers for "use public path to define a image url in laravel blade"

PHP
3

laravel get public path url

// 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');
Posted by: Guest on November-08-2020
0

pass image path in laravel blade

<img src="{{ asset('images/foo.png') }}" alt="tag">
Posted by: Guest on September-15-2021

Code answers related to "use public path to define a image url in laravel blade"

Browse Popular Code Answers by Language