CSS Routes Laravel Template

1

I am following an example of Laravel exercise and I would like to know if I can transform this:

<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/css/override.css">
<link rel="stylesheet" type="text/css" href="/css/app.css">

In something similar to these that I have of another exercise:

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

Try this:

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

I want to make a similar change since I get this error in the CSS debugger:

GET http://laravel/css/bootstrap.min.css
    
asked by Alberto Cepero de Andrés 02.10.2017 в 09:58
source

1 answer

8

The helper asset() points to the public of your project by default, try removing the public since you want to access it is to css/bootstrap.min.css within the public folder.

    
answered by 02.10.2017 / 10:19
source