Why is my view not presenting the css design?

0
<html>
<head>
  <link href="/css/app.css" rel="stylesheet">
  <title>Controle de estoque</title>
</head>
<body>
  <h1>Listagem de Produtos</h1>
  <table class="table">
  <?php foreach($produtos as $p): ?>
  <tr>
    <td><?= $p->nome ?></td>
    <td><?= $p->valor ?></td>
    <td><?= $p->descricao ?></td>
    <td><?= $p->quantidade ?></td>
  </tr>
 <?php endforeach ?>
  </table>
 </body>
 </html>
    
asked by anonymous 06.08.2018 / 16:51

2 answers

1

Because the way is wrong. If you are using the css files in the public folder (which is recommended) you should add as follows:

<link href="{{ asset('css/app.css') }}" rel="stylesheet" type="text/css"/>
    
06.08.2018 / 16:54
0

You may not be presented with the correct path to the file. try this.

<link href="../css/app.css" rel="stylesheet">

It's always good to clear the browser cache too:)

    
06.08.2018 / 16:56