dimanche 21 juin 2020

Image displaying in Layout blade but not inside @content, in Laravel

Here is my code for Layout Blade

<!doctype html>
<html lang="">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- CSRF Token -->
<meta name="csrf-token" content="">

<title></title>

<!-- Scripts -->
<script src="" defer></script>

<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">

<!-- Styles -->
<link href="" rel="stylesheet">
<link href="" rel="stylesheet">
<link href="" rel="stylesheet">
<link href="" rel="stylesheet">
</head>

<body>
<div id="app">

    <main class="py-4">
        @yield('content')
    </main>
                <div class="col-sm-3">
                    <div class="partners">
                        <img src="imgs/logo_footer.png" alt="" class="img-responsive">
                        <img src="imgs/logo_footer2.png" alt="" class="img-responsive" style="max-height:35px;">
                        <img src="imgs/logo_footer3.png" alt="" class="img-responsive">
                    </div>
                </div>

</div>
</body>
</html>

And it works fine. With result "imgs/logo_footer.png"

But in the content, using the same way, the result is "https://ift.tt/2YVgGgz"

I tryed with asset().



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2CmSoo1
via IFTTT

Aucun commentaire:

Enregistrer un commentaire