用view.blade.php搞砸了CSS

时间:2017-12-17 05:23:39

标签: laravel laravel-5 laravel-blade

我有一个很好的.blade.php视图很好用css设计,但当我为{{$data}}放置一个变量,或者甚至在每个循环{{$d->col1}}内部时,css设计就会消失

是什么原因

@foreach($data as $d )     
  {{$d->price}}
@endforeach

1 个答案:

答案 0 :(得分:0)

I corrected myself I changed

<link rel="stylesheet" href="css/bootstrap.min.css" rel="stylesheet">

to

<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}" rel="stylesheet"> 

And the problem solved.