Laravel 5 4 Storage link

0 votes

When I go to the link folder public/storage/image, which is empty, I would want to show a photo in an HTML file. However, in the storage/image folder, I find the file, which is also preserved in the database.

@foreach($cvs as $cv)
                    <div class="col-sm-6 col-md-4">
                    <div class="thumbnail">
                        <img src="{{ asset('storage/'.$cv->photo) }}" alt="...">
                        <div class="caption">
                        <h3>{{ $cv->titre }}</h3>
                        <p>{{$cv->presentation}}</p>
                        <p>
                            <a href="#" class="btn btn-primary" role="button">Afficher</a>
                            <a href="#" class="btn btn-success" role="button">Modifier</a>
                            <a href="#" class="btn btn-danger" role="button">Supprimer</a>
                         </p>
                        </div>
                    </div>
                    </div>
                    @endforeach
                    </div>
               </div>

Can someone please help me with this?

Jul 22 in PHP by Kithuzzz
• 3,660 points
19 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In PHP

0 votes
1 answer

How to change public folder to public_html in laravel 5?

Hello, you can register the following code at Application ...READ MORE

answered Nov 6, 2020 in PHP by Niroj
• 82,740 points
154 views
0 votes
1 answer

How to change public folder to public_html in laravel 5?

Hello @kartik, go to this address : /app/Providers/AppServiceProvider.php and append ...READ MORE

answered Nov 9, 2020 in PHP by Niroj
• 82,740 points
2,084 views
0 votes
0 answers

Need XAMPP with PHP 5.4 version - windows

Can someone please share with me any ...READ MORE

Jun 21 in PHP by narikkadan
• 11,280 points
27 views
0 votes
0 answers

NotFoundHttpException in RouteCollection.php line 161: in laravel 5

My CollectionController looks like this . <?php namespace App\Http\Controllers; use ...READ MORE

Jun 24 in PHP by narikkadan
• 11,280 points
70 views
0 votes
0 answers

PHP Composer update "cannot allocate memory" error (using Laravel 4)

I'm on Linode 1G RAM basic plan. ...READ MORE

Jun 27 in PHP by narikkadan
• 11,280 points
26 views
0 votes
1 answer

How to set up file permissions for Laravel?

Hello @kartik, The permissions for the storage and vendor folders should stay ...READ MORE

answered Apr 20, 2020 in PHP by I Navin
• 220 points
2,720 views
0 votes
1 answer

Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required

Your mail.php on config you declare host ...READ MORE

answered Feb 16 in Others by Aditya
• 7,300 points
21 views
0 votes
0 answers

Laravel 5 – Clear Cache in Shared Hosting Server

php artisan cache:clear Is there any workaround to ...READ MORE

Jun 20 in PHP by Kithuzzz
• 3,660 points
25 views
0 votes
0 answers

When to generate a new Application Key in Laravel?

As it automatically sets it for me ...READ MORE

Jun 25 in PHP by narikkadan
• 11,280 points
9 views
0 votes
0 answers

Artisan, creating tables in database

In Laravel 5, I'm attempting to build ...READ MORE

Jul 22 in PHP by Kithuzzz
• 3,660 points
13 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP