CSS does not load according to route in laravel

0

I have a blade file in which it is my base layout (which will be loaded on all pages). But I agree that I put the route, the css of this page does not load. Ex.:

If my route is like this:

Route::get('/novo', 'UserController@novo');

The css loads, but if I put it like this:

Route::get('/users/novo', 'UserController@novo');

My css does not load!

    
asked by anonymous 19.04.2017 / 15:12

1 answer

0

Problem solved. it's just changing the href of the link tag.

Before:

<link href="/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">nsira o código aqui

Correction:

<link href="{{URL::asset('/font-awesome/css/font-awesome.min.css')}}" rel="stylesheet" type="text/css">
    
19.04.2017 / 15:18