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') }}">
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.