vendredi 16 octobre 2015

How can I link to bower components in Laravel 5.1

I'm using bower to install some dependencies. The only issue I have is trying to load them globally throughout my views.

I'm trying to do this:

<script src="{{ URL::asset('bower_components/sweetalert/dist/sweetalert-dev.js') }}"></script>
<link rel="stylesheet" href="{{ URL::asset('node_modules/sweetalert/dist/weetalert.css') }}">

Which results in:

<script src="http://ift.tt/1OJdN7T"></script>
<link rel="stylesheet" href="http://ift.tt/1jIkZFm">

Which is obviously wrong because it's outside the app directory. How can I reference the libraries properly?

Thank you, Andy



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire