S
S
SuperDoker2015-12-01 16:53:50
Laravel
SuperDoker, 2015-12-01 16:53:50

Laravel how to properly link to css style?

I do it like this {{ asset('css/bootstrap.min.css') }} and this link appears href=" csgobean.dev/css/bootstrap.min.css " but nothing opens on it. If you do this {{ Html::style('css/bootstrap.min.css') }} then you get this
BGLgbga.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Muhammad, 2015-12-01
@SuperDoker

laravel.com/docs/5.1/helpers#method-url:

<link type="text/css" rel="stylesheet" href="{{ url('css/bootstrap.min.css') }}"

F
FMars, 2015-12-01
@FMars

{!! asset('css/bootstrap.min.css') !!}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question