dimanche 12 novembre 2017

Laravel - asset() function no working well

I have a problem with my laravel project.

In my link.blade.php file I have:

<!-- Bootstrap core CSS -->
<link href="{!! asset(css/bootstrap.min.css) !!}" rel="stylesheet">
<link href="{!! asset(css/theme.css) !!}" rel="stylesheet">
<link href="{!! asset(css/bootstrap-reset.css) !!}" rel="stylesheet">

and when a run my server I got:

Use of undefined constant css - assumed 'css' (View: 
/home/ubuntu/workspace/resources/views/partials/links.blade.php) (View: 
/home/ubuntu/workspace/resources/views/partials/links.blade.php) (View: 
/home/ubuntu/workspace/resources/views/partials/links.blade.php) (View: 
/home/ubuntu/workspace/resources/views/partials/links.blade.php)

it's looks like the compiler can't get my css/bootstrap.min.css (located in public dir).

When I've removed this css file it's move to the second one and so on (also js files).

Public dir: Link

What I should do, please help!!



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2AzvdAJ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire