php - CSS doesn't work with long link in laravel -


i have interesting trouble, in view have :

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

that css's link , long still worked month ago, doesn't work, , try :

<link href="{{ url::asset('ad/bower_components/bootstrap/dist/css/bootstrap.min.css') }}" rel="stylesheet">   

too, haven't worked yet,

but when try shorter link, works normally, why?

<link href="{{asset('link_to_css_file_in_public_folder')}}" rel="stylesheet" > 

that should work.

ps: put code in layouts->app.blade.php or other layout use.

in case want load separate css file in different pages in layout call @yield('styles') , in blade import css file sample above inside

@section('styles') your_code @endsection 

Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -