Search code examples
phplaravellaravel-5.1openshiftassets

Laravel 5.1 Assets (js, css, img) on OpenShift don't work


I uploaded my Laravel 5.1 project to OpenShift and everything is ok. But when I tried working with css and js files using {{ asset() }} an error occurred and the changes are not displayed.

Please help. Thanks.

<link type="text/css" rel="stylesheet" href="{{ asset('plugins/materialize/css/materialize.css') }}">
<link type="text/css" rel="stylesheet" href="{{ asset('css/estilo.css') }}">

example.jpg

error


Solution

  • add / in your {{ asset('css/estilo.css') }}

    like this {{ asset('/css/estilo.css') }}