简体   繁体   中英

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM