CSS does not load according to the route in the Standard

Asked

Viewed 1,369 times

0

I have a Blade file in which it is my base layout (which will be loaded on all pages). But according to what I set the route, the css of this page does not load. Ex.:

if my route is like this:

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

css loads, but if I put it like this:

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

My css does not load!

1 answer

0


Problem solved. just change 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">

Browser other questions tagged

You are not signed in. Login or sign up in order to post.